Qui il formato PHP per inviare SMS
// These code snippets use an open-source library. http://unirest.io/php
$response = Unirest\Request::post("https://www.zentext.it/api/v1/send",
[
"Authorization" => "<API_KEY>",
"Content-Type" => "application/json",
], '{"phone" : "391234567890", "sender_id":"Zentext", "body": "Bevenuto!"}');
Qui il formato Python per inviare SMS
# These code snippets use an open-source library. http://unirest.io/python
response = unirest.post("https://www.zentext.it/api/v1/send",
headers={
"X-Authorization": "<API_KEY>",
"Content-Type": "application/json",
"Accept": "application/json"
},
params= '{"phone" : "391234567890", "sender_id":"Zentext", "body": "Bevenuto!"}'));
Qui il formato BASH per inviare SMS
$ curl -XPOST \
-H 'X-Authorization: ‘<API_KEY>’ \
-H "Content-type: application/json" \
-d ''{"phone" : "391234567890", "sender_id":"Zentext", "body": "Bevenuto!"}' ‘https://www.zentext.it/api/v1/send’