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
Restituisce dati relativi all'utente
success | boolean |
code | number |
object |
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);
"{\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}"
Restituisce la lista dei mittenti registrati
success | boolean |
code | number |
Array of objects[ items ] |
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);
"{\n success: true,\n code: 200,\n data: [\n {\n \"id_sender\": \"123456\",\n \"phone_number\": \"333123456789\",\n \"name\": \"ALTRAVIA\"\n }\n ]\n}"
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);
"{\n success: true,\n code: 200,\n data: [\n {\n \"version\": \"1.0\"\n }\n ]\n}"
Aggiunge un nuovo numero in rubrica
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 |
success | boolean |
code | number |
object |
{- "addressbooks": [
- "<string>",
- "<string>"
], - "disable_update": "<boolean>",
- "create_addressbook_if_not_exist": "<boolean>",
- "contact_data": {
- "name": "<string>",
- "last_name": "<string>",
- "email": "<string>",
- "phone": "<string>",
- "birthday_date": "<string>",
- "sex": "M",
- "company_name": "<string>",
- "address": "<string>",
- "zip_code": "<string>",
- "region": "<string>",
- "custom_field1": "<string>",
- "custom_field2": "<string>",
- "custom_field3": "<string>",
- "custom_field4": "<string>"
}
}
"{\n \"success\": true,\n \"code\": 200,\n \"data\": {\n \"created_contact\": 1,\n \"updated_contact\": 0\n }\n}"