User Manual

118 | SMSEagle NXS-9700-3G | User’s Manual
login
your user to login to SMSEagle
pass
your password to login to SMSEagle
name
(optional parameter) shift name
enabled
(optional parameter) 0 = disabled, 1 = enabled
shift_id
(optional parameter) shift id
responsetype
(optional parameter) text = format response as text (default), xml = format
response as XML object
EXAMPLES:
{"method":"phonebook.shift_read",
"params":{"login":"john","pass":"doe","name":"myshift"}}
RESPONSE:
Sample response:
{
"result": [
{
"id_shift": "62",
"name": "myshift",
"mon_from": "08:00",
"mon_to": "16:00",
"tue_from": null,
"tue_to": null,
"wed_from": "09:00",
"wed_to": "20:00",
"thu_from": null,
"thu_to": null,
"fri_from": null,
"fri_to": null,
"sat_from": null,
"sat_to": null,
"sun_from": null,
"sun_to": null,
"enabled": "true"
}
]
}
Response (when no data): {"result": "No data to display"}
Response (when wrong logindata): {"result": "Invalid login or password"}
Response (when wrong parameters):
{"result": "Wrong >> enabled<< parameter"}
{"result": "Wrong >>shift_id<< parameter"}
RESPONSE (EXTENDED):
Sample response:
{