User Manual

111 | SMSEagle NXS-9700-3G | User’s Manual
Response (when wrong logindata): {"result": "Invalid login or password"}
Response (when wrong parameters):
{"result": "Wrong or missing >>contactname<< parameter"}
{"result": "Wrong or missing >>contact_id<< parameter"}
Response (when contact_id is wrong): {"result": "Contact with the given id and name
does not exists"}
RESPONSE (EXTENDED):
Response: {"result":{"status":"ok"}}
Response (when wrong logindata):
{"result": {"error_text":"Invalid login or password","status":"error"}}
Response (when wrong parameters):
{"result": {"error_text":"Wrong or missing >>contactname<<
parameter","status":"error"}}
{"result": {"error_text":"Wrong or missing >>contact_id<<
parameter","status":"error"}}
Response (when contact_id is wrong):
{"result": {"error_text":"Contact with the given id and name does not
exists","status":"error"}}
43. Call with termination: HTTP GET method
HTTP GET METHOD:
https://url-of-smseagle/index.php/http_api/call_with_termination
Parameter
Description
login
your user to login to SMSEagle
pass
your password to login to SMSEagle
to
phone numer to call
duration
connection duration (in seconds)
modem_no
(optional parameter) calling modem number (only for multimodem devices)
responsetype
(optional parameter) text = format response as text (default), xml = format
response as XML object
EXAMPLES:
https://url-of-smseagle/index.php/http_api/call_with_termination?
login=john&pass=doe&to=12345&to=123456789&duration=5
RESPONSE:
Response: OK