page_start
:
optional |
Text
Default 0 |
page_size
:
optional |
Text
Default 10 |
task_status
:
optional |
Text
Default NOTRATED. Values[NOTRATED,OK,REVISE] |
curl -H "MicroworkersApiKey:YOUR_API_KEY" -X GET "https://ttv.microworkers.com/api/campaign/get_rate_task_info_list/B/2168e3b09815/format/json?page_start=0&page_size=10&task_status=NOTRATED"
from pprint import pprint
from MW_API import MW_API
mw_api = MW_API('YOUR_API_KEY')
res = mw_api.do_request('GET','/campaign/get_rate_task_info_list/B/2168e3b09815/format/json', {"page_start" : "0", "page_size" : "10", "task_status" : "NOTRATED"}, {})
pprint(res)
use MW_API;
use Data::Dumper qw(Dumper);
my $mw_api = MW_API->new('api_key' => 'YOUR_API_KEY');
my $res = $mw_api->do_request('GET', '/campaign/get_rate_task_info_list/B/2168e3b09815/format/json', {
"page_start" => "0", "page_size" => "10", "task_status" => "NOTRATED"
});
print Dumper($res);
<?php
include "includes/RESTClient.php";
define("cAPI_KEY", "YOUR_API_KEY");
define("cAPI_URL", "https://ttv.microworkers.com/api");
$client = new RESTClient();
$client->setApiKey(cAPI_KEY);
$client->setUrl(cAPI_URL . "/campaign/get_rate_task_info_list/B/2168e3b09815/format/json");
$client->setMethod("GET");
$client->setData(array("page_start" => "0", "page_size" => "10", "task_status" => "NOTRATED"));
$client->execute();
$response = $client->getLastResponse();
$client->resetClient();
echo $response;
?>
using System;
using MWAPI;
using System.Collections.Specialized;
public class Test{
public static void Main (string[] args){
MW_API MW_API_Client = new MW_API ("YOUR_API_KEY");
NameValueCollection postData = new NameValueCollection();
postData.Add("page_start", "0");
postData.Add("page_size", "10");
postData.Add("task_status", "NOTRATED");
string body = MW_API_Client.getRequest("/campaign/get_rate_task_info_list/B/2168e3b09815/format/json");
Console.WriteLine (body);
}
}
{ "status": "SUCCESS", "response": { "campaign_id": "c3829c633350", "campaign_type": "HG", "task_status": "NOTRATED", "page_start": 0, "page_size": 10, "list": [ { "task_id": 2209055, "status": "NOTRATED", "worker_id": "de917335", "is_testcase_passed": true, "subtasks": [ { "subtask_id": "c3829c633350_HG_57091f4a20bc90_95594942", "questions": [ { "question_id": "Q56c2073515310", "question_name": "title", "question_tag": "Input", "is_required": true, "testcase_answer": [], "worker_answer": "fh", "qualification_rate": 5, "question_type": "text", "question_complexity": 5 }, { "question_id": "Q56c20735153a9", "question_name": "Description", "question_tag": "TextArea", "is_required": true, "testcase_answer": [], "worker_answer": "dfg", "qualification_rate": 5, "question_complexity": 5 }, { "question_id": "Q56c2073515405", "question_name": "human", "question_tag": "Input", "is_required": true, "testcase_answer": [], "worker_answer": "Yes", "qualification_rate": 5, "question_type": "radio", "question_complexity": 5 }, { "question_id": "Q56c20735154a6", "question_name": "checkbox", "question_tag": "Input", "is_required": false, "testcase_answer": [], "worker_answer": "Yes", "qualification_rate": 5, "question_type": "checkbox", "question_complexity": 5 }, { "question_id": "Q56c20735154f7", "question_name": "chck", "question_tag": "Input", "is_required": false, "testcase_answer": [], "worker_answer": "", "qualification_rate": 5, "question_type": "checkbox", "question_complexity": 5 }, { "question_id": "Q56c2073515545", "question_name": "feedback", "question_tag": "TextArea", "is_required": true, "testcase_answer": [], "worker_answer": "dfg", "qualification_rate": 5, "question_complexity": 5 } ], "variables": [] } ], "start_datetime": "Sunday, 10-Apr-16 12:14:08 EDT", "finish_datetime": "Sunday, 10-Apr-16 12:14:18 EDT" } ] } }
{ "status": "ERROR", "message": "TTVCampaign-E0000:Campaign does not exists with id 'c3829c63330_HG'" }