These are all the 1.0 APIs that have been deprecated since 23-Jan-2019. Please use the latest version of API 2.0.

/campaign/get_task_details/<type>/<campaign_id>/<task_id>

Get task basic information using this API method.
The value of 'type' (Campaign type) can be 'B' or 'HG'.

This API method is use for getting task basic information. This API doesn't require MicroworkersAPIKey as header.
curl -H "MicroworkersApiKey:YOUR_API_KEY" -X GET "https://ttv.microworkers.com/api/campaign/get_task_details/B/2168e3b09815/12345/format/json"
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_task_details/B/2168e3b09815/12345/format/json', {}, {})
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_task_details/B/2168e3b09815/12345/format/json');
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_task_details/B/2168e3b09815/12345/format/json");
$client->setMethod("GET");
$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();
    
    string body = MW_API_Client.getRequest("/campaign/get_task_details/B/2168e3b09815/12345/format/json");
    Console.WriteLine (body);
  }
}

Definition


Result Format

{
  "status": "SUCCESS",
  "response": {
    "task_details": [
      {
        "sub_task_id": "2094d1552966_HG_5525e187e3d43",
        "answer": [
          {
            "question_id": "Q54f5f7c91fedc",
            "question_name": "title",
            "answer": "a"
          },
          {
            "question_id": "Q54f5f7c91ff74",
            "question_name": "Description",
            "answer": "a"
          },
          {
            "question_id": "Q54f5f7c91ffe8",
            "question_name": "human",
            "answer": "a"
          },
          {
            "question_id": "Q54f5f7c920058",
            "question_name": "feedback",
            "answer": "a"
          }
        ],
        "variable": []
      }
    ]
  }
}
{
  "status": "ERROR",
  "message": "TTVAPI-E0004:TTVCampaign-E0000:Campaign does not exists with id '2094d155266_HG'"
}