HttpTaskService
Simplified operations with http tasks
If you work with method which selects tasks via url, you should know that when you create task specifying some url - this url is a rawUrl for task, but real url is formed by some rawUrl transormation:
for http task schema is added if needed (http:// by default) and trailing slashes and hash signs are removed.
This url should be specified in such methods. Use returned value from create task methods for detecting task url.
- login - user login, must be specified with password, incompatible with ticket
- password - user password, must be specified with login, incompatible with ticket
- ticket - ticket from SignIn API call of user service, incompatible with login, password pair
Soap client fault messages on auth. fail:
- AccessDenied - access to api is denied. Also coused by wrong user billing package
- IncorrectLoginOrPassword - raised when login and/or password is incorrect in auth. header
- TicketExpired - provided ticked is expired
- WrongTicket - ticket could not be decrypted
The following operations are supported. For a formal definition, please review the Service Description.
-
CreateHttpGetTask
Create http task with method Get and specified url and interval. See task service CreateTask for resulted Soap client faults. -
CreateHttpGetTasks
Create http tasks with method Get for each url in urls array with specified interval. See task service CreateTasks for resulted Soap client faults. -
CreateHttpHeadTask
Create http task with method Head and specified url and interval. See task service CreateTask for resulted Soap client faults. -
CreateHttpHeadTasks
Create http tasks with method Head for each url in urls array with specified interval. See task service CreateTasks for resulted Soap client faults. -
CreateHttpPostTask
Create http task with method Post and specified url, postData and interval. See task service CreateTask for resulted Soap client faults. -
CreateHttpPostTasksWithSamePostData
Create http tasks with method Post for each url in urls array with specified interval and postData. See task service CreateTasks for resulted Soap client faults. -
DeleteTaskWithUrl
Delete task with specified url -
DeleteTaskWithUrls
Delete task with specified urls -
GetTaskWithUrl
Get task by url. Return null if task was not found. If url is null result is Soap client fail EmptyUrl -
GetTasksWithUrls
Get tasks by urls -
UpdateIntervalForTaskWithUrl
Update interval of http task with specified url -
UpdateIntervalForTasksWithUrls
Update interval of http task with specified url -
UpdatePostDataForPostTaskWithUrl
Update post data of http post task with specified url -
UpdatePostDataForPostTasksWithUrls
Update post data of http post task with specified url -
UpdateStatusForTaskWithUrl
Enable or disable http task with specified url -
UpdateStatusForTasksWithUrls
Enable or disable http tasks with specified urls -
UpdateTaskInterval
Update http task interval. See task service UpdateTask for resulted Soap client faults. -
UpdateTaskUrl
Update http task url. See task service UpdateTask for resulted Soap client faults. -
UpdateUrlForTaskWithUrl
Update url of http task with specified url