api get all sms by service

Requesting all the SMS messages for a given Number without any removed messages (/smsapi/RemoveSmsByService)

URL : /SMS/GetAllServiceSms?apiId={ID}&secret={SEC}&number={NUM}&serviceName={SERV}

{ID} - provided api id (Required)

{SEC} - provided api secret (Required)

{NUM} - the number to return SMS messages for

{SERV} - the service name

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