User Manual

101 | SMSEagle NXS-9700-3G | User’s Manual
{"result": {"error_text":"Contact with the given id does not
exists","status":"error"}}
35. Phonebook contact create: HTTP GET method
HTTP GET METHOD:
https://url-of-smseagle/index.php/http_api/contact_create
Parameter
Description
login
your user to login to SMSEagle
pass
your password to login to SMSEagle
contactname
name for the created contact
number
telephone number for the created contact
public
(optional parameter) 0 = private contact, 1 = public contact (default value)
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_create?
login=john&pass=doe&contactname=johndoe&number=12345678&public=1
RESPONSE:
Response: OK; ID=[ID of created contact]
Sample response: OK; ID=2
Response (when wrong logindata): Invalid login or password
Response (when wrong parameters):
Wrong or missing >>contactname<< parameter
Wrong or missing >>number<< parameter
RESPONSE (XML):
Response:
<xml>
<contact_id>[ID of created contact]</contact_id>
<status>ok</status>
</xml>
Sample response:
<xml>
<contact_id>2</contact_id>
<status>ok</status>
</xml>