128
| SMSEagle NXS-9700-3G
| User’s Manual
responsetype
(optional parameter)
text = format response as text (default), xml = format
response as XML object
BODY:
{"method":"sms.get_modem_state", "params":{"login":"john","pass":"doe"}}
RESPONSE:
{
"
result
"
: enabled / disabled }
Sample response:
{
"
result
"
:
"enabled"
}
Response
(when wrong logindata)
:
{
"
result
"
:
"
Invalid login or password
"
}
Response
(when modem doesn’t exist)
:
{
"
result
"
:
"
Wrong modem number
"
}
RESPONSE (EXTENDED):
Response:
{"result":{"modem_status":
enabled / disabled
,"status":"ok"}}
Sample response:
{"result": {"modem_status":"Wrong modem
number","status":"ok"}}
Response (when wrong logindata):
{"result": {"error_text":"Invalid login or password","status":"error"}}
Response
(when modem doesn’t exist)
:
{"result": {"error_text":"
Wrong modem number
","status":"error"}}
59.
Set modem state: HTTP GET method
HTTP GET METHOD:
https://url-of-smseagle/index.php/http_api/set_modem_state
Parameter
Description
login
your user to login to SMSEagle
pass
your password to login to SMSEagle
modem_no
(optional parameter)
modem number for status change (default = 1). Used only in
multimodem devices
status
enabled / disabled
responsetype
(optional parameter)
text = format response as text (default), xml = format
response as XML object
EXAMPLES:
https://url-of-smseagle/index.php/http_api/set_modem_state?
login=john&pass=doe&modem_no=1&status=enabled
Содержание NXS-9700
Страница 1: ...User s Manual SMSEAGLE NXS 9700...
Страница 7: ...7 SMSEagle NXS 9700 3G User s Manual GET READY TO START I...
Страница 13: ...13 SMSEagle NXS 9700 3G User s Manual USING OF SMSEAGLE II...
Страница 145: ...145 SMSEagle NXS 9700 3G User s Manual 8 To enable v2 access policy run snmpv3 enablev2...
Страница 151: ...151 SMSEagle NXS 9700 3G User s Manual TROUBLESHOOTING I I I I I I...
Страница 155: ...155 SMSEagle NXS 9700 3G User s Manual SERVICE REPAIR IV I...
Страница 157: ...157 SMSEagle NXS 9700 3G User s Manual TECH SPECS SAFETY INFORMATION V I...