User Manual

96 | SMSEagle NXS-9700-3G | User’s Manual
{"result": {"error_text":"Wrong or missing >>group_id<<
parameter","status":"error"}}
Response (when group_id is wrong):
{"result": {"error_text":"Group with the given id does not
exists","status":"error"}}
31. Phonebook group add contact: HTTP GET method
HTTP GET METHOD:
https://url-of-smseagle/index.php/http_api/group_addcontact
Parameter
Description
login
your user to login to SMSEagle
pass
your password to login to SMSEagle
group_id
id of existing group (or id’s separated with comma)
contact_id
id of contact. The contact will be added to the group
responsetype
(optional parameter) text = format response as text (default), xml = format
response as XML object
EXAMPLES:
https://url-of-smseagle/index.php/http_api/group_addcontact?
login=john&pass=doe&group_id=2&contact_id=1
RESPONSE:
Response: OK
Response (when wrong logindata): Invalid login or password
Response (when wrong parameters):
Wrong or missing >>group_id<< parameter
Wrong or missing >>contact_id<< parameter
Response (when id is wrong):
Group with the given id does not exists
Contact with the given id does not exists
RESPONSE (XML):
Response:
<xml>
<status>ok</status>
</xml>
Response (when wrong logindata):
<xml>