User Manual

122 | SMSEagle NXS-9700-3G | User’s Manual
51. Phonebook shift delete: HTTP GET method
HTTP GET METHOD:
https://url-of-smseagle/index.php/http_api/shift_delete
Parameter
Description
login
your user to login to SMSEagle
pass
your password to login to SMSEagle
shift_id
id of existing 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_delete?
login=john&pass=doe&shift_id=24
RESPONSE:
Response: OK
Response (when wrong logindata): Invalid login or password
Response (when wrong parameters):
Wrong or missing >>shift_id<< parameter
Response (when shift_id is wrong): Shift with the given id does not exist
RESPONSE (XML):
Response:
<xml>
<status>ok</status>
</xml>
Response (when wrong logindata):
<xml>
<error_text>Invalid login or password</error_text>
<status>error</status>
</xml>
<xml>
<error_text>Wrong or missing >>shift_id<< parameter</error_text>
<status>error</status>
</xml>
Response (when shift_id is wrong):