User Manual

49 | SMSEagle NXS-9700-3G | User’s Manual
RESPONSE:
Response: {"result": "OK; ID=[ID of message in outbox]"}
Sample response: {"result": "OK; ID=[297]"}
Response (when wrong logindata): {"result": "Invalid login or password"}
Response (when wrong parameters): {"result": "Wrong parameters"}
RESPONSE (EXTENDED):
Response:
{"result": {"message_id":"[ID of message in outbox]","status":"ok"}}
Sample response: {"result": {"message_id":"748","status":"ok"}}
Response (when wrong logindata):
{"result": {"error_text":"Invalid login or password","status":"error"}}
Response (when wrong parameters):
{"result": {"error_text":"Wrong parameters","status":"error"}}
5. Send SMS to contact: HTTP GET method
HTTP GET METHOD:
https://url-of-smseagle/index.php/http_api/send_tocontact
Parameter
Description
login
your user to login to SMSEagle
pass
your password to login to SMSEagle
contactname
contact name (or names separated by comma) defined in your SMSEagle
Phonebook . Contacts must be defined as Public
message
your SMS message
date
(optional parameter) date and time in format YYYYmmDDHHMM (YYYY – year,
mm – month, DD – day, HH – hour, MM – minute). If this parameter is not null
SMS will be scheduled for sending at the given date and time
highpriority
(optional parameter) 0 = normal priority, 1 = SMS will have higher priority in
Outbox queue when processed by GSM-modem
unicode
(optional parameter) 0 = no Unicode encoding (default), 1 = SMS will be encoded
using Unicode (you can send national characters)
flash
(optional parameter) 0 = normal SMS (default), 1 = SMS will be sent as flash
message
modem_no
(optional parameter) sending modem number (only for multimodem devices)