User Manual

133 | SMSEagle NXS-9700-3G | User’s Manual
Response (when modem doesn’t exist):
{"result": {"error_text":"Wrong modem number","status":"error"}}
Response (when wrong modem state):
{"result": {"error_text":"Wrong modem state","status":"error"}}
61. User ID read: HTTP GET method
HTTP GET METHOD:
https://url-of-smseagle/index.php/http_api/userid_read
Parameter
Description
login
your user to login to SMSEagle
pass
your password to login to SMSEagle
username
username to be queried
responsetype
(optional parameter) text = format response as text (default), xml = format
response as XML object
EXAMPLES:
https://url-of-smseagle/index.php/http_api/userid_read?
login=john&pass=doe&username=myuser
RESPONSE:
Response: User ID
Sample response: 24
Response (when username parameter is missing): Missing >>username<< parameter
Response (when user doesn’t exist): Wrong >>username<< parameter
RESPONSE (XML):
Response:
<xml>
<status>
ok
</status>
</xml>
Response (when username parameter is missing):
<xml>
<error_text>Missing >>username<< parameter</error_text>
<status>error</status>
</xml>
Response (when user doesn’t exist):
<xml>