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
/campaign_hg/results_csv/<campaign_id> GET
Returns submitted tasks in CSV.
Parameters:
Return values:
status=SUCCESS, campaign_id=[campaign id], csv="csv data"
status=ERROR, campaign_id, error=[error message*]
*[NO SUCH CAMPAIGN]
Code:
cURL:
PHP:
Perl:
Python:
C#:
Examples:
Output (Success):
https://api.microworkers.com/campaign_hg/results_csv/313687d35d31
{
"status": "SUCCESS",
"campaign_id": "313687d35d31",
"csv": "CAMPAIGN_TITLE,\"Test campaign\"\nCAMPAIGN_STATUS,RUNNING\nCAMPAIGN_ID,75d093bc0dfd\nAVAILABLE_POSITIONS,10\nPAYMENT_PER_TASK,0.05000\nCREATED,\"2015-03-29 15:01:29\"\nMAX_POS_PER_WORKER,10\nGROUP,\"MW: ALL USA
Workers\"\nREQUIRED_PROOFS,1\n,\nTASKS_SUBMITTED,6\nTASKS_OK,4\nTASKS_NOK,2\nTASKS_NOTRATED,0\n,\nROW,CSV_ROW,TASK_ID,USER_ID,USERNAME,TASK_RATING,FINISHED,IP,COUNTRY_CODE,PROOF_1,EMPLOYER_COMMENT,HTTP_USER_AGENT\n1,0,2208005,18f4174c,Member_12345,OK,\"2015-03-29
16:25:03\",182.217.102.84,US,mw-6ece5c1488610fd364045a7decc9321ab511139a5622b64ebd2e5558d70a1ffb,,\"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:37.0) Gecko\/20100101 Firefox\/37.0\"\n2,0,2208003,18f4174c,OK,\"2015-03-29
16:22:46\",182.217.102.84,US,mw-dd82027357748c95dec56cb4fa6b1da396157db5a30d857aa46c2d6aa25cba30,,\"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:37.0) Gecko\/20100101 Firefox\/37.0\"\n3,0,2208001,18f4174c,OK,\"2015-03-29
16:21:16\",182.217.102.84,US,mw-57bb72a755f9778f810a8da8ea6cdf00df3b88e1c5a7a0bc8ec294a561a42f74,,\"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:37.0) Gecko\/20100101 Firefox\/37.0\"\n4,0,2208000,18f4174c,OK,\"2015-03-29
16:20:42\",182.217.102.84,US,mw-c220f89b400ac2b5d6a79810fd7ac1519d14038fadb10829645856cd54bf64eb,,\"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:37.0) Gecko\/20100101 Firefox\/37.0\"\n5,0,2208004,18f4174c,NOK,\"2015-03-29
16:24:14\",182.217.102.84,US,mw-84e747cc9e10c1bf6559bca5c68d7fbc5401777395882ccc4a8cb8d501099d17,bad,\"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:37.0) Gecko\/20100101 Firefox\/37.0\"\n6,0,2208002,18f4174c,NOK,\"2015-03-29
16:22:19\",182.217.102.84,US,mw-314e60c9c6194ab8dc757cab0bc7c9d69ffbac301decf827b0b927ca2784b36d,failure,\"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:37.0) Gecko\/20100101 Firefox\/37.0\"\n"
}
Output (Error):
https://api.microworkers.com/campaign_hg/results_csv/123456780
{
"status": "ERROR",
"campaign_id": "123456780",
"error": "NO SUCH CAMPAIGN"
}