User Manual

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