User Manual

51 | SMSEagle NXS-9700-3G | User’s Manual
Response (when wrong parameters):
<xml>
<error_text>Wrong parameters</error_text>
<status>error</status>
</xml>
6. Send SMS to contact: JSONRPC method
HTTP POST METHOD:
https://url-of-smseagle/index.php/jsonrpc/sms
Parameter
Description
login
your user to login to SMSEagle
pass
your password to login to SMSEagle
contactname
contact name defined in your SMSEagle Phonebook. The contact 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)
responsetype
(optional parameter) simple = format response as simple object with one result
field (default), extended = format response as extended JSON object
EXAMPLES:
{"method":"sms.send_tocontact",
"params":{"login":"john","pass":"doe","contactname":"johndoe","message":"my
message"}}
or
{"method":"sms.send_tocontact",
"params":{"login":"john","pass":"doe","contactname":"johndoe","message":"my
message","date":"201401152132"}}
or
{"method":"sms.send_tocontact",
"params":{"login":"john","pass":"doe","contactname":"johndoe","message":"my
message","highpriority":"1"}}