User Manual

119 | SMSEagle NXS-9700-3G | User’s Manual
"result": {
"shifts": [
{
"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": "false"
}
],
"status": "ok"
}
}
Response (when no data):
{"result": {"error_text":" No data to display","status":"error"}}
Response (when wrong logindata):
{"result": {"error_text":"Invalid login or password","status":"error"}}
Response (when wrong parameters):
{"result": {"error_text":" Wrong >> enabled<< parameter ","status":"error"}}
{"result": {"error_text":" Wrong >> shift_id<< parameter
","status":"error"}}
49. Phonebook shift update: HTTP GET method
HTTP GET METHOD:
https://url-of-smseagle/index.php/http_api/shift_update
Parameter
Description
login
your user to login to SMSEagle
pass
your password to login to SMSEagle
shift_id
id of existing shift
name
name for the shift
enabled
0 = disabled, 1 = enabled