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

</