User Manual

125 | SMSEagle NXS-9700-3G | User’s Manual
</xml>
<xml>
<error_text>Wrong or missing >>contact_id<< parameter</error_text>
<status>error</status>
</xml>
Response (when id is wrong):
<xml>
<error_text>Shift with the given id does not exists</error_text>
<status>error</status>
</xml>
<xml>
<error_text>Contact with the given id does not exists</error_text>
<status>error</status>
</xml>
54. Phonebook shift add contact: JSONRPC method
HTTP POST METHOD:
https://url-of-smseagle/index.php/jsonrpc/sms
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:
{"method":"phonebook.shift_addcontact",
"params":{"login":"john","pass":"doe","shift_id":"24","contact_id":"1"}}
RESPONSE:
Response: {"result": "OK"}
Response (when wrong logindata): {"result": "Invalid login or password"}
Response (when wrong parameters):
{"result": "Wrong or missing >>shift_id<< parameter"}
{"result": "Wrong or missing >>contact_id<< parameter"}
Response (when id is wrong):