POST Method – json
POST method – application/json
Example of full request:
POST /api/1.0/simple/promotional HTTP/1.1
Host: sms.gretor.net
Content-Type: application/json
Cache-Control: no-cache
{
"application_id": "<APPLICATION_ID>",
"application_token": "<APPLICATION_TOKEN>",
"number": "447700900000;7811901234;447712345678",
"text": "test_sms",
"unicode": true,
"flash": false,
"sender_id": "gText",
"sender_id_value": "GretorSms",
"country": "gb",
"schedule": "2018-05-14T18:30:00-01:00"
}
Example of country request:
POST /api/1.0/simple/promotional HTTP/1.1
Host: sms.gretor.net
Content-Type: application/json
Cache-Control: no-cache
{
"application_id": "<APPLICATION_ID>",
"application_token": "<APPLICATION_TOKEN>",
"number": "447700900000;7811901234;447712345678",
"text": "test_sms",
"country": "gb"
}
Example of ISO 8601 request:
POST /api/1.0/simple/promotional HTTP/1.1
Host: sms.gretor.net
Content-Type: application/json
Cache-Control: no-cache
{
"application_id": "<APPLICATION_ID>",
"application_token": "<APPLICATION_TOKEN>",
"number": "447700900000;7811901234;447712345678",
"text": "test_sms",
"schedule": "2018-05-14T18:30:00-01:00"
}
Example of unix timestamp request:
POST /api/1.0/simple/promotional HTTP/1.1
Host: sms.gretor.net
Content-Type: application/json
Cache-Control: no-cache
{
"application_id": "<APPLICATION_ID>",
"application_token": "<APPLICATION_TOKEN>",
"number": "447700900000;7811901234;447712345678",
"text": "test_sms",