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/categories_list/<type>

Get List of categories using this API method.
The value of 'type' (Campaign type) can be 'B' or 'HG'.

This API method is use for getting list of categories
curl -H "MicroworkersApiKey:YOUR_API_KEY" -X GET "https://ttv.microworkers.com/api/campaign/categories_list/B/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/categories_list/B/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/categories_list/B/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/categories_list/B/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/categories_list/B/format/json");
    Console.WriteLine (body);
  }
}

Definition


Result Format

{
  "status": "SUCCESS",
  "response": {
    "count": 23,
    "parent_categories": [
      {
        "title": "Qualification",
        "categories": [
          {
            "id": "0401",
            "title": "Qualification Test",
            "min_payment_per_task": [
              {
                "zone": "caribbean1",
                "payment_per_task": "0.00000"
              },
              {
                "zone": "int",
                "payment_per_task": "0.00000"
              },
              {
                "zone": "asia1",
                "payment_per_task": "0.00000"
              }
            ]
          }
        ]
      },
      {
        "title": "Sign up",
        "categories": [
          {
            "id": "0500",
            "title": "Email submit only",
            "min_payment_per_task": [
              {
                "zone": "europe1",
                "payment_per_task": "0.26000"
              },
              {
                "zone": "europe2",
                "payment_per_task": "0.18000"
              },
              {
                "zone": "asia1",
                "payment_per_task": "0.08000"
              }
            ]
          }
        ]
      }
    ]
  }
}
{
  "status": "SUCCESS",
  "message": "NO CATEGORIES"
}