api all sms

Requesting all the SMS messages for a given Number

URL : /SMS/GetAllSms?apiId={ID}&secret={SEC}&number={NUM}

{ID} - provided api id (Required)

{SEC} - provided api secret (Required)

{NUM} - the number to return SMS messages for

Example response:

{"Status":"Success","Messages":[{"Telegram code 59248","MessageId":"xxx-xxx-xxx"},{"Telegram code 60269","MessageId":"xxx-xxx-xxx"}],"ErrorCode":"Non","Error":null,"NumberOfMessages":2,"TimeOfLastMessage":"31/Jan/17 03:13:15"}

The messages will be shown in a JSON array.

Also provided is the date and time of the last SMS received on the given number and the total number of SMS messages for the given number.

<< Back