User Manual

77 | SMSEagle NXS-9700-3G | User’s Manual
13. Delete SMS: HTTP GET method
HTTP GET METHOD:
https://url-of-smseagle/index.php/http_api/delete_sms
Parameter
Description
login
your user to login to SMSEagle
pass
your password to login to SMSEagle
folder
one of the following: inbox, outbox, sentitems
idfrom
minimal id of message
idto
maximal id of message
responsetype
(optional parameter) text = format response as text (default), xml = format
response as XML object
EXAMPLES:
Delete message with id=1234 from inbox:
https://url-of-smseagle/index.php/http_api/delete_sms?
login=john&pass=doe&folder=inbox&idfrom=1234&idto=1234
Delete messages with id 1234 – 1250 from inbox:
https://url-of-smseagle/index.php/http_api/delete_sms?
login=john&pass=doe&folder=inbox&idfrom=1234&idto=1250
Delete all messages from outbox:
https://url-of-smseagle/index.php/http_api/delete_sms?
login=john&pass=doe&folder=outbox&idfrom=1&idto=999999999
RESPONSE:
Response: OK
Response (when delete operation was not successful): Error
Response (when wrong logindata): Invalid login or password
RESPONSE (XML):
Response:
<xml>
<status>ok</status>
</xml>
Response (when delete operation was not successful):
<xml>
<status>error</status>
</xml>