User Manual

103 | SMSEagle NXS-9700-3G | User’s Manual
{"result": "Wrong or missing >>contactname<< parameter"}
{"result": "Wrong or missing >>number<< parameter"}
RESPONSE (EXTENDED):
Response:
{"result": {"contact_id":"[ID of created contact]","status":"ok"}}
Sample response: {"result": {"contact_id":"2","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 >>number<<
parameter","status":"error"}}
37. Phonebook contact read: HTTP GET method
HTTP GET METHOD:
https://url-of-smseagle/index.php/http_api/contact_read
Parameter
Description
login
your user to login to SMSEagle
pass
your password to login to SMSEagle
public
(optional parameter) 0 = private contacts (default value), 1 = public contacts
uid
(optional parameter) id of user who created the contact
responsetype
(optional parameter) text = format response as text (default), xml = format
response as XML object
EXAMPLES:
https://url-of-smseagle/index.php/http_api/contact_read?
login=john&pass=doe&public=1&uid=12
RESPONSE:
Sample response: link
Response (when no data): No data to display
Response (when wrong logindata): Invalid login or password
Response (when wrong parameters):
Wrong or missing >>uid<< parameter
Wrong or missing >>public<< parameter