Couldn´t find your answer? Or still missing any answers?
Please do not hesitate to contact us. Our support team is pleased to answer your questions via our contact form .

How to convert an Excel file to a CSV file?

1. Creating a CSV file:

For the data import, a CSV file in moreify is required. To generate this CSV file, you need a spreadsheet program such as Excel, LibreOffice, or Numbers. Open a new spreadsheet file including the following fields in the exact same order: Name, surname, nickname, email address, phone number. After creating file and fields, simply fill in the individual contact information for every recipient.
2. Click "Save As"

For saving the file as a CSV, click "save as" in the main menu "File". 3. Select export format

Select Windows-delimited (.csv) as export format and confirm. 4. Click "import" after exporting the file

By clicking the "Import"-button, the CSV file will be delivered to us so we can import your contacts into our system. The imported contacts are now listed in the web interface.
Incorrect contacts can easily be changed online.

How to convert a LibreOffice file to a CSV file?

1. Creating a CSV file:

For the data import, a CSV file in moreify is required. To generate this CSV file, you need a spreadsheet program such as Excel, LibreOffice, or Numbers. Open a new spreadsheet file including the following fields in the exact same order: Name, surname, nickname, email address, phone number.
After creating file and fields, simply fill in the individual contact information for every recipient.
You can download a csv-sample file here. 2. Click "Save As"

For saving the file as a CSV, click "save as" in the main menu "File". 3. Select export format

Select Text CSV (.csv) as export format and confirm. 4. Click "import" after exporting the file

By clicking the "Import"-button, the CSV file will be delivered to us so we can import your contacts into our system. The imported contacts are now listed in the web interface. Incorrect contacts can easily be changed online.

How to convert a Numbers file to a CSV file?

1. Creating a CSV file:

For the data import, a CSV file in moreify is required.
To generate this CSV file, you need a spreadsheet program such as Numbers, Excel or LibreOffice. Open a new spreadsheet file including the following fields in the exact same order: Name, surname, nickname, email address, phone number. After creating file and fields, simply fill in the individual contact information for every recipient.
2. Click "Save As"

For saving the file as a CSV, click "save as" in the main menu "File”. 3. Select export format

Select Text CSV (.csv) as export format and confirm. 4. Click "import" after exporting the file

By clicking the "Import"-button, the CSV file will be delivered to us so we can import your contacts into our system. The imported contacts are now listed in the web interface.
Incorrect contacts can be easily changed online.
 

How do I integrate a SMS response into the two-factor authentication using the API in PHP?


<?php

$apiUrl = "https://mapi.moreify.com/api/v1/sendSms";
$postParams = array(
	'project' =>        'your_project_identifier',
	'password' =>       'your_token',
	'phonenumber' =>    '00436641234567',
	'message' =>        'Your message text comes here',
	'tag' =>            'MyTag'
);

$curl = curl_init($apiUrl);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $postParams);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);
$response = curl_exec($curl);

How do I integrate a SMS response into the two-factor authentication using the API in Perl?


use LWP::UserAgent;

my $ua  = LWP::UserAgent->new();
my $url = "https://mapi.moreify.com/api/v1/sendSms";
my $response = $ua->post( $url, [
	"project" =>        "your_project_identifier",
	"password" =>       "your_token",
	"phonenumber" =>    "00436641234567",
	"message" =>        "Your message text comes here",
	"tag" =>            "MyTag"
] );

How do I integrate a SMS response into the two-factor authentication using the API in Java?


String data = String.format("project=%s&"
	+ "password=%s&"
	+ "phonenumber=%s&"
	+ "message=%s&"
	+ "tag=%s",
	URLEncoder.encode("your_project_identifier", "UTF-8"),
	URLEncoder.encode("your_token", "UTF-8"),
	URLEncoder.encode("00436641234567", "UTF-8"),
	URLEncoder.encode("Your message text comes here", "UTF-8"),
	URLEncoder.encode("MyTag", "UTF-8")
);

URL url = new URL("https://mapi.moreify.com/api/v1/sendSms");
HttpURLConnection connection = HttpURLConnection.class.cast(url.openConnection());
connection.setRequestMethod("POST");

connection.setDoInput(true);
connection.setDoOutput(true);

DataOutputStream os = new DataOutputStream(connection.getOutputStream());
os.writeBytes(data);
os.close();

InputStream in = connection.getInputStream();
// read response...

How do I integrate a SMS response into the two-factor authentication using the API in Ruby?


require 'uri'
require 'net/http'

uri = URI("https://mapi.moreify.com/api/v1/sendSms")
response = Net::HTTP.post_form(uri,
	'project' =>        'your_project_identifier',
	'password' =>       'your_token',
	'phonenumber' =>    '00436641234567',
	'message' =>        'Your message text comes here',
	'tag' =>            'MyTag'
)

How do I integrate a SMS response into the two-factor authentication using the API in Python?


# first make sure you have the "requests" package installed (see python-requests.org)
import requests

postParams = {
	'project':      'your_project_identifier',
	'password':     'your_token',
	'phonenumber':  '00436641234567',
	'message':      'Your message text comes here',
	'tag':          'MyTag'
}
response = requests.post("https://mapi.moreify.com/api/v1/sendSms", data=postParams)

How do I build an alert-message with Nagios via the API?


define command {
    command_name    notify-service-by-moreify
    command_line    /usr/bin/curl -X POST https://mapi.moreify.com/api/v1/sendSms \
                                  -d project=your_project_identifier \
                                  -d password=your_token \
                                  -d phonenumber=$CONTACTPAGER$ \
                                  -d message="Service: $SERVICEDESC$%0aHost: $HOSTALIAS$%0aState: $SERVICESTATE$%0a%0a$SERVICEOUTPUT$"
}

define command {
    command_name    notify-host-by-moreify
    command_line    /usr/bin/curl -X POST https://mapi.moreify.com/api/v1/sendSms \
                                  -d project=your_project_identifier \
                                  -d password=your_token \
                                  -d phonenumber=$CONTACTPAGER$ \
                                  -d message="Host: $HOSTNAME$%0aState: $HOSTSTATE$%0a%0a$HOSTOUTPUT$"
}

define contact {
    contact_name                   moreify-template
    name                           moreify-template
    alias                          Moreify contact template

    service_notification_period    24x7
    host_notification_period       24x7
    service_notification_options   w,u,c,r
    host_notification_options      d,r
    service_notification_commands  notify-service-by-moreify
    host_notification_commands     notify-host-by-moreify

    register                       0
}

define contact {
    use                            moreify-template
    contact_name                   cpt_uptime
    pager                          +436641234567
}

define contactgroup {
    contactgroup_name              oncall
    members                        cpt_uptime
}

define service {
  name                             important_service
  contact_groups                   oncall
}

How do I integrate a Voice response into the two-factor authentication using the API in PHP?


<?php

$apiUrl = "https://mapi.moreify.com/api/v1/sendCall";
$postParams = array(
	'project' =>        'your_project_identifier',
	'password' =>       'your_token',
	'phonenumber' =>    '00436641234567',
	'language' =>       'en',
	'verifycode' =>     '1234',
	'tag' =>            'MyTag'
);

$curl = curl_init($apiUrl);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $postParams);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);
$response = curl_exec($curl);

How do I integrate a Voice response into the two-factor authentication using the API in Perl?


use LWP::UserAgent;

my $ua  = LWP::UserAgent->new();
my $url = "https://mapi.moreify.com/api/v1/sendCall";
my $response = $ua->post( $url, [
	"project" =>        "your_project_identifier",
	"password" =>       "your_token",
	"phonenumber" =>    "00436641234567",
	"language" =>       "en",
	"verifycode" =>     "1234",
	"tag" =>            "MyTag"
] );

How do I integrate a Voice response into the two-factor authentication using the API in Java?


String data = String.format("project=%s&"
	+ "password=%s&"
	+ "phonenumber=%s&"
	+ "language=%s&"
	+ "verifycode=%s&"
	+ "tag=%s",
	URLEncoder.encode("your_project_identifier", "UTF-8"),
	URLEncoder.encode("your_token", "UTF-8"),
	URLEncoder.encode("00436641234567", "UTF-8"),
	URLEncoder.encode("de", "UTF-8"),
	URLEncoder.encode("1234", "UTF-8"),
	URLEncoder.encode("MyTag", "UTF-8")
);


URL url = new URL("https://mapi.moreify.com/api/v1/sendCall");
HttpURLConnection connection = HttpURLConnection.class.cast(url.openConnection());
connection.setRequestMethod("POST");

connection.setDoInput(true);
connection.setDoOutput(true);

DataOutputStream os = new DataOutputStream(connection.getOutputStream());
os.writeBytes(data);
os.close();

InputStream in = connection.getInputStream();
// read response...

How do I integrate a Voice response into the two-factor authentication using the API in Ruby?


require 'uri'
require 'net/http'

uri = URI("https://mapi.moreify.com/api/v1/sendCall")
response = Net::HTTP.post_form(uri,
	'project' =>        'your_project_identifier',
	'password' =>       'your_token',
	'phonenumber' =>    '00436641234567',
	'language' =>       'en',
	'verifycode' =>     '1234',
	'tag' =>            'MyTag'
)

How do I integrate a Voice response into the two-factor authentication using the API in Python?


# first make sure you have the "requests" package installed (see python-requests.org)
import requests

postParams = {
	'project':      'your_project_identifier',
	'password':     'your_token',
	'phonenumber':  '00436641234567',
	'language':     'en',
	'verifycode':   '1234',
	'tag':          'MyTag'
}
response = requests.post("https://mapi.moreify.com/api/v1/sendCall", data=postParams)

How do I execute a command in moreify using a command line?

curl -X POST https://mapi.moreify.com/api/v1/sendSms \
						-d project=$PROJECT \
						-d password=$PASSWORD \
						-d phonenumber=$PHONENUMBER \
						-d message="Hello and welcome to moreify!"