API documentation
Account
Basic Campaigns
- GET
- /campaign_b/get_task_info/
- /campaign_b/list_tasks/
- /campaigns_b/list
- /campaigns_b/list_extend
- /campaign_b/list_tasks_extend/
- /campaign_b/get_status/
- /campaign_b/get_info/
- /campaign_b/download_file_proof/
- /campaign_b/zones_list/
- /campaign_b/categories_list/
- /campaign_b/get_worker_tasks/
- /campaign_b/results_csv/
- POST, PUT
- /campaign_b/set_speed/
- /campaign_b/new_campaign
- /campaign_b/stop/
- /campaign_b/pause/
- /campaign_b/resume/
- /campaign_b/rate_task/
- /campaign_b/rate_tasks/
- /campaign_b/add_positions/
- /campaign_b/submit_proof/
- /campaign_b/submit_file_proof/
- /campaign_b/retarget/
- /campaign_b/restart_campaign/
- /campaign_b/toggle_qt_required/
HG Campaigns
- GET
- /campaign_hg/get_task_info/
- /campaign_hg/list_tasks/
- /campaign_hg/list_tasks_extend/
- /campaigns_hg/list
- /campaigns_hg/list_extend
- /campaign_hg/get_status/
- /campaign_hg/get_info/
- /campaign_hg/categories_list/
- /campaign_hg/groups_list/
- /campaign_hg/download_file_proof/
- /campaign_hg/get_worker_tasks/
- /campaign_hg/results_csv/
- POST, PUT
- /campaign_hg/new_campaign
- /campaign_hg/stop/
- /campaign_hg/pause/
- /campaign_hg/resume/
- /campaign_hg/rate_task/
- /campaign_hg/rate_tasks/
- /campaign_hg/add_positions/
- /campaign_hg/submit_proof/
- /campaign_hg/submit_file_proof/
- /campaign_hg/lock_task/
- /campaign_hg/change_group/
- /campaign_hg/restart_campaign/
- /campaign_hg/toggle_qt_required/
Employer
- GET
- /employer/exclude_list
- POST
- /employer/exclude_list
- DELETE
- /employer/exclude_list
Worker
Messages
/worker/hg_tasks GET
Returns submitted tasks list.
Parameters:
(Optional) Task Rating
Example values: [OK|NOK|NOTRATED|NOTREVIEWED|REVISE]
(Optional) Finished from datetime
Example value: 2014-12-02 00:00:00
(Optional) Finished to datetime
Example value: 2014-12-31 23:59:59
(Optional) Page #
Example value: 2. Default: 1
(Optional) Entries per page #
Example value: 100. Default/Max: 200
Return values:
status=SUCCESS, tasks=[array of array], pager=[pagination]
status=ERROR, error=[error message*], errors_list=[errors list]
*[INPUT_DATA]
**[Rating has invalid value|Finished From is invalid datetime|Finished To is invalid datetime|Page is invalid|Entries Per Page is invalid|Page must be bigger than zero|Entries Per Page must be bigger than zero|Entries Per Page must be less or equal to 200]
Code:
cURL:
PHP:
Perl:
Python:
C#:
Examples:
https://api.microworkers.com/worker/hg_tasks?entries_per_page=2
{
"status": "SUCCESS",
"pager": {
"current_page": 1,
"entries_on_this_page": 2,
"entries_per_page": 2,
"first": 1,
"first_page": 1,
"last": 2,
"last_page": 76,
"next_page": 2,
"previous_page": null,
"total_entries": 151
},
"tasks": [
{
"bonus_worker_earned": "0.00000",
"campaign_id": "564444828eec",
"campaign_title": "Facebook like",
"csv_record_nr": "0",
"employer_comment": "test",
"finished_datetime": "2015-02-20 11:04:14",
"has_file": "0",
"id": "2207859",
"ip": "182.27.13.82",
"proof_1": "1",
"proof_2": "2",
"proof_3": "3",
"task_rating": "OK",
"worker_earned": "0.06000",
"worker_id": "1354174c"
},
{
"bonus_worker_earned": "0.00000",
"campaign_id": "ebed73fbb8cc",
"campaign_title": "Blog moderation",
"csv_record_nr": "0",
"employer_comment": "",
"finished_datetime": "2015-02-20 11:04:27",
"has_file": "0",
"id": "2207860",
"ip": "182.27.13.82",
"proof_1": "page #12",
"proof_2": "",
"proof_3": "",
"task_rating": "OK",
"worker_earned": "0.06000",
"worker_id": "1354174c"
}
]
}
https://api.microworkers.com/worker/hg_tasks?finished_from=123
{
"status": "ERROR",
"errors_list": ["Finished From is invalid datetime"],
"error": "INPUT_DATA"
}