User Manual

129 | SMSEagle NXS-9700-3G | User’s Manual
Parameter
Description
login
your user to login to SMSEagle
pass
your password to login to SMSEagle
modem_no
(optional parameter) modem number to be queried (default = 1). Used only in
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/get_modem_state?
login=john&pass=doe&modem_no=1
RESPONSE:
Response: enabled / disabled
Sample response: enabled
Response (when wrong logindata): Invalid login or password
Response (when modem doesn’t exist): Wrong modem number
RESPONSE (XML):
Response:
<xml>
<modem_status>
enabled / disabled
</modem_status>
<status>
ok
</status>
</xml>
Sample response:
<xml>
<modem_status>
enabled
</modem_status>
<status>
ok
</status>
</xml>
Response (when wrong logindata):
<xml>
<error_text>Invalid login or password</error_text>
<status>error</status>
</xml>