User Manual

114 | SMSEagle NXS-9700-3G | User’s Manual
45. Phonebook shift create: HTTP GET method
HTTP GET METHOD:
https://url-of-smseagle/index.php/http_api/shift_create
Parameter
Description
login
your user to login to SMSEagle
pass
your password to login to SMSEagle
name
name for the created shift
enabled
0 = disabled, 1 = enabled
(mon-sun)_from
shift start hour for each day of week
(mon-sun)_to
shift end hour for each day of week
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_create?
login=john&pass=doe&name=myshift&mon_from=08:00&mon_to=16:00&wed_from=09:00
&wed_to=20:00&enabled=1
RESPONSE:
Response: OK; ID=[ID of created shift]
Sample response: OK; ID=5
Response (when wrong logindata): Invalid login or password
Response (when wrong parameters): Wrong or missing >>name<< parameter
RESPONSE (XML):
Response:
<xml>
<shift_id>[ID of created shift]</shift_id>
<status>ok</status>
</xml>
Sample response:
<xml>
<shift_id>5</shift_id>
<status>ok</status>
</xml>
Response (when wrong logindata):
<xml>