Run with Postman

Messaggi SMS

la documentazione qui presentata descrive tuttee le principali funzionalità e le istruzioni per gestire le rubriche e l'invio di messaggi multipli o singoli dai siti messaggisms (invio di SMS a numeri italiani +39) e textmessage pro (invio di SMS a numeri inglesi +44).
Dopo essersi iscritti ad uno dei siti è possibile recuperare i dati di autenticazione da Impostazioni > Api e Developers

Term of services messaggisms
Term of services textmessage.pro

Varie

Utility generiche

Stato dell'utente

Restituisce dati relativi all'utente

Authorizations:

Responses

Response Schema: application/json
success
boolean
code
number
object

Request samples

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://software.messaggisms.com/api//user_status");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Basic REPLACE_BASIC_AUTH");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);

Response samples

Content type
application/json
"{\n success: true,\n code: 200,\n data: [\n \"credit\": \"8\",\n \"history\": [\n {\n \"date\": \"2019-04-12 09:57:03\",\n \"payment_type\": null,\n \"user_generated\": true,\n \"currency\": null,\n \"price\": null,\n \"formatted_price\": null,\n \"operation\": \"First registration\",\n \"description\": \"First subscription to TextMessage by the user\"\n },\n ]\n ]\n}"

Lista dei mittenti

Restituisce la lista dei mittenti registrati

Authorizations:

Responses

Response Schema: application/json
success
boolean
code
number
Array of objects[ items ]

Request samples

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://software.messaggisms.com/api//senders");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Basic REPLACE_BASIC_AUTH");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);

Response samples

Content type
application/json
"{\n success: true,\n code: 200,\n data: [\n {\n \"id_sender\": \"123456\",\n \"phone_number\": \"333123456789\",\n \"name\": \"ALTRAVIA\"\n }\n ]\n}"

Versione delle API

la versione delle API

Authorizations:

Responses

Request samples

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://software.messaggisms.com/api//api_version");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Basic REPLACE_BASIC_AUTH");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);

Response samples

Content type
application/json
"{\n success: true,\n code: 200,\n data: [\n {\n \"version\": \"1.0\"\n }\n ]\n}"

Contacts

Gestione rubriche e contatti

Aggiunge un nuovo numero in rubrica

Aggiunge un nuovo numero in rubrica

Authorizations:
Request Body schema: application/json
addressbooks
Array of strings 2 items

Lista delle rubriche dove aggiungere il contatto

disable_update
boolean
Default: "<boolean>"

Se passato a true non aggiorna eventuali dati duplicati

create_addressbook_if_not_exist
boolean
Default: "<boolean>"

se passato a true aggiunge una rubrica nel caso in cui la rubrica non sia esistente

object

Responses

Response Schema: application/json
success
boolean
code
number
object

Request samples

Content type
application/json
{
  • "addressbooks": [
    ],
  • "disable_update": "<boolean>",
  • "create_addressbook_if_not_exist": "<boolean>",
  • "contact_data": {
    }
}

Response samples

Content type
application/json
"{\n \"success\": true,\n \"code\": 200,\n \"data\": {\n \"created_contact\": 1,\n \"updated_contact\": 0\n }\n}"

Dettagli di un contatto

Restituisce i dettagli di un contatto a partire dal numero di telefono

Authorizations:
path Parameters
phone
required
string
Default: "<string>"

Il numero di telefono

Responses

Response Schema: application/json
success
boolean
code
number
object (ContactDetail)

Request samples

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://software.messaggisms.com/api//contact/%7Bphone%7D");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Basic REPLACE_BASIC_AUTH");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);

Response samples

Content type
application/json
"{\n \"success\": true,\n \"data\": {\n \"name\": \"Giuseppe\",\n \"last_name\": \"Rossio\",\n \"email\": \"\",\n \"phone\": \"3923456789\",\n \"birthday_date\": \"\",\n \"sex\": null,\n \"company_name\": \"\",\n \"address\": \"\",\n \"zip_code\": \"\",\n \"city\": \"\",\n \"region\": \"\",\n \"custom_field1\": \"\",\n \"custom_field2\": \"\",\n \"custom_field3\": \"\",\n \"custom_field4\": \"\",\n \"last_reading_date\": null,\n \"last_iteration_date\": null,\n \"last_click_date\": null,\n \"addressbooks\": [\n \"Default\",\n \"test\",\n \"rubrica prova lista\"\n ]\n },\n \"code\": 200\n}"

Eliminazione di un contatto

Elimina un contatto a partire dal numero di telefono

Authorizations:
path Parameters
phone
required
string
Default: "<string>"

Il numero di telefono

Responses

Request samples

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "https://software.messaggisms.com/api//contact/%7Bphone%7D");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Basic REPLACE_BASIC_AUTH");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);

Response samples

Content type
application/json
"{\n \"success\": true,\n \"code\": 200\n}"

Lista delle rubriche

Restituisce la lista delle rubriche

Authorizations:

Responses

Response Schema: application/json
success
boolean
code
number
Array of objects[ items ]

Request samples

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://software.messaggisms.com/api//addressBook");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Basic REPLACE_BASIC_AUTH");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);

Response samples

Content type
application/json
"{\n success: true,\n code: 200,\n data: [\n {\n \"name\": \"Default\",\n \"note\": \"\",\n \"last_send_data\": null\n },\n {\n \"name\": \"test\",\n \"note\": \"\",\n \"last_send_data\": \"2019-10-16 17:52:22\"\n }\n ]\n}"

Aggiunge una nuova rubrica

Tramite questa funzione è possibile aggiungere una nuova rubrica

Authorizations:
Request Body schema: application/json
name
string
Default: "<string>"

Il nome della rubrica

note
string
Default: "<string>"

Le note associate alla rubrica

Responses

Request samples

Content type
application/json
{
  • "name": "<string>",
  • "note": "<string>"
}

Response samples

Content type
application/json
"{\n \"success\": true,\n \"code\": 200\n}"

Dettagli rubrica

Restituisce i dettagli (compresi i contatti) di una rubrica

Authorizations:
path Parameters
adressBookName
required
string
Default: "<string>"

Il nome dell arubrica da recuperare

Responses

Response Schema: application/json
name
string

il nome della rubrica

last_send_data
string

data dell'ultimo invio della rubrica

note
string

note associate alla rubrica

contacts_number
number

numero di contatti presenti nella rubrica

Array of objects (ContactDetail) [ items ]

Request samples

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://software.messaggisms.com/api//addressBook/%7BadressBookName%7D");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Basic REPLACE_BASIC_AUTH");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);

Response samples

Content type
application/json
"{\n success: true,\n code: 200,\n data: [\n \"name\": \"test\",\n \"last_send_data\": \"2019-10-16 17:52:22\",\n \"note\": \"\",\n \"contacts_number\": 1,\n \"contacts\": [\n {\n \"name\": \"Paolo\",\n \"last_name\": \"Bernardini\",\n \"email\": \"\",\n \"phone\": \"3927091047\",\n \"birthday_date\": \"\",\n \"sex\": null,\n \"company_name\": \"\",\n \"address\": \"\",\n \"zip_code\": \"\",\n \"city\": \"\",\n \"region\": \"\",\n \"custom_field1\": \"\",\n \"custom_field2\": \"\",\n \"custom_field3\": \"\",\n \"custom_field4\": \"\",\n \"last_reading_date\": null,\n \"last_iteration_date\": null,\n \"last_click_date\": null,\n \"addressbooks\": [\n \"Default\",\n \"test\",\n \"rubrica prova lista\"\n ]\n }\n ]\n ]\n}"

Message

Gestione campagne e messaggi singoli

Lista campagne

Restituisce la lista delle campagne

Authorizations:

Responses

Response Schema: application/json
success
boolean
code
number
Array of objects[ items ]

Request samples

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://software.messaggisms.com/api//campaign");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Basic REPLACE_BASIC_AUTH");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);

Response samples

Content type
application/json
"{\n \"success\": true,\n \"code\": 200,\n \"data\": [\n {\n \"name\": \"test\",\n \"state\": \"sent\",\n \"code\": \"d036c7d24b1\",\n \"send_dates\": [\n \"2019-04-12 10:52:00\"\n ]\n },\n {\n \"name\": \"prova\",\n \"state\": \"sent\",\n \"code\": \"af9fa777dd333\",\n \"send_dates\": [\n \"2019-09-05 09:28:00\"\n ]\n }\n ]\n}"

Crea una nuova campagna

Aggiunge una nuova campagna

Authorizations:
Request Body schema: application/json
id_sender
number
Default: "<number>"

Uno tra id_sender e sender_name è obbligatorio

sender_name
string
Default: "<string>"

Uno tra id_sender e sender_name è obbligatorio

name
string
Default: "<string>"

il nome della campagna

message
string
Default: "<string>"

Il testo della campagna

send_date
Array of strings 2 items

Lista delle date in cui inviare la campagna

state
string
Default: "<string>"
Enum: "draft" "sent"

Lo stato della campagna

address_books
Array of strings 2 items

lista delle rubriche a cui inviare

Responses

Request samples

Content type
application/json
{
  • "id_sender": "<number>",
  • "sender_name": "<string>",
  • "name": "<string>",
  • "message": "<string>",
  • "send_date": [
    ],
  • "state": "draft",
  • "address_books": [
    ]
}

Response samples

Content type
application/json
"{\n \"data\": {\n \"code\": \"825709c7791272\"\n },\n \"success\": true,\n \"code\": 200\n}"

dettagli campagna

Restituisce i dettagli di una campagna a partirte dal codice

Authorizations:
path Parameters
code
required
string
Default: "<string>"

Il codice della campagna

Responses

Response Schema: application/json
success
boolean
code
number
object

Request samples

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://software.messaggisms.com/api//campaign/%7Bcode%7D");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Basic REPLACE_BASIC_AUTH");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);

Response samples

Content type
application/json
"{\n \"success\": true,\n \"code\": 200,\n \"data\": [\n \"name\": \"test\",\n \"message\": \"test {{Name}}\",\n \"sender\": \"333125485\",\n \"state\": \"sent\",\n \"code\": \"d036c7d24b12\",\n \"send_dates\": [\n \"2019-04-12 10:52:00\"\n ],\n \"addressbooks\": [\n \"test\"\n ]\n}"

Invia un nuovo messaggio

Invia un messaggio una tantum

Authorizations:
Request Body schema: application/json
id_sender
number
Default: "<number>"

Uno tra id_sender e sender_name è obbligatorio

sender_name
string
Default: "<string>"

Uno tra id_sender e sender_name è obbligatorio

recipients
Array of strings 2 items

Lista dei destinatari

message
string
Default: "<string>"

Il testo del messaggio

test
number
Default: "<number>"

Se passato ad 1(default = 0) il messaggio p un test

Responses

Response Schema: application/json
success
boolean
code
number
object

Request samples

Content type
application/json
{
  • "id_sender": "<number>",
  • "sender_name": "<string>",
  • "recipients": [
    ],
  • "message": "<string>",
  • "test": "<number>"
}

Response samples

Content type
application/json
"{\n \"success\": true,\n \"data\": {\n \"message\": \"prova prova prova\",\n \"credit\": \"6\",\n \"message_id\": 145870,\n \"sms_total\": 1,\n \"test\": false\n }\n}"

Status di un messaggio singolo

Restituisce lo status di un singolo messaggio

Authorizations:
query Parameters
message_id
number
Default: "<number>"

L'id del messaggio singolo

Responses

Response Schema: application/json
success
boolean
code
number
object

Request samples

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://software.messaggisms.com/api//message_status?message_id=SOME_NUMBER_VALUE");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Basic REPLACE_BASIC_AUTH");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);

Response samples

Content type
application/json
"{\n \"success\": true,\n \"data\": {\n \"message_id\": \"145870\",\n \"message\": \"prova prova prova\",\n \"recipients\": [\n {\n \"recipients_number\": \"+39-3927091047\",\n \"state\": \"2\",\n \"error_description\": \"\",\n \"fields\": {},\n \"sent_date\": \"2020-07-27 16:40:02\",\n \"delivery_date\": \"2020-07-27 16:40:03\"\n }\n ]\n }"