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

/template/get_info

Get template details

template_id :

required

Text

Template Id must be starts with "T".

This API method is use for getting template details. You can use your own created template_id or default created template_id.
curl -H "MicroworkersApiKey:YOUR_API_KEY" -X GET "https://ttv.microworkers.com/api/template/get_info/format/json?template_id=T54f9518a418e2"
from pprint import pprint
from MW_API import MW_API
mw_api = MW_API('YOUR_API_KEY')
res = mw_api.do_request('GET','/template/get_info/format/json', {"template_id" : "T54f9518a418e2"}, {})
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', '/template/get_info/format/json', {
  "template_id" => "T54f9518a418e2"
});
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 . "/template/get_info/format/json");
$client->setMethod("GET");
$client->setData(array("template_id" => "T54f9518a418e2"));
$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("template_id", "T54f9518a418e2");
    
    string body = MW_API_Client.getRequest("/template/get_info/format/json");
    Console.WriteLine (body);
  }
}

Definition


Result Format

{
  "status": "SUCCESS",
  "response": {
    "template_id": "T57ec68ceb8f17",
    "title": "Ads Monitoring Task",
    "htmlcode": "<!-- Instructions --><div class=\"panel panel-primary\">\n<div class=\"panel-heading\"><strong>Task Instructions:<\/strong><\/div>\n\n<div class=\"panel-body\">\n<div class=\"row\"><!-- \"Objectives\" Panel -->\n<div class=\"col-sm-6\">\n<div class=\"panel panel-info\">\n<div class=\"panel-heading\"><strong>Steps:<\/strong><\/div>\n\n<div class=\"panel-body\">\n<ol><li>Turn on\/activate Adblocker<\/li>\n\t<li>Open a website provided below<\/li>\n\t<li>Open the screenshot below to locate ads on the provided page<\/li>\n\t<li>Check whether ads are acceptable or not ***(Check criteria from right panel)<\/li>\n\t<li>Provide your feedback below<\/li>\n<\/ol><\/div>\n<\/div>\n<\/div>\n<!-- End \"Objectives\" Panel --><!-- \"Attention\" Panel -->\n\n<div class=\"col-sm-6\">\n<div class=\"panel panel-danger\">\n<div class=\"panel-heading\"><strong>Criteria:<\/strong><\/div>\n\n<div class=\"panel-body\">\n<h5><strong>Acceptable Ads<\/strong><\/h5>\n\n<ul><li>If ad placement doesn't disrupt reader's flow<\/li>\n\t<li>Ad is distinguishable from all other content<\/li>\n\t<li>Ad size is within the standard ad-size requirement<\/li>\n<\/ul><h5><strong>Unacceptable Ads<\/strong><\/h5>\n\n<ul><li>Ads with excessive or non user-initiated hover effects<\/li>\n\t<li>Animated ads<\/li>\n\t<li>Autoplay-sound or video<\/li>\n\t<li>Expanding ads<\/li>\n\t<li>Generally oversized image ads<\/li>\n\t<li>Interstitial page ads<\/li>\n\t<li>Overlay ads, Overlay in-video ads<\/li>\n\t<li>Pop-ups, Pop-unders<\/li>\n\t<li>Pre-roll videos<\/li>\n\t<li>Rich media ads (Flash ads, Shockwave ads, etc.)<\/li>\n<\/ul><\/div>\n<\/div>\n<\/div>\n<!-- End \"Attention\" Panel --><!-- End Instructions -->\n\n<p><!-- Page --><\/p>\n\n<div class=\"text-center\">\n<pre>\n<strong>Website:<\/strong> <a href=\"http:\/\/${URL}\" target=\"_blank\">\n<mark>${URL}\n<\/mark><\/a>\n<\/pre>\n<\/div>\n<!-- End Page --><!-- Screenshot -->\n\n<div class=\"text-center\">\n<pre>\n<strong>Screenshot:<\/strong> <a href=\"http:\/\/${SCREENSHOT}\" target=\"_blank\">\n<mark>${SCREENSHOT}\n<\/mark><\/a>\n<\/pre>\n<\/div>\n<!-- End Screenshot -->\n\n<p><!-- Collected Data --><\/p>\n\n<div class=\"panel panel-success\">\n<div class=\"panel-heading\"><strong>Feedback:<\/strong><\/div>\n\n<div class=\"panel-body\">\n<div class=\"well well-lg\"><label>Are the ads acceptable<\/label><strong>?<\/strong><br><input name=\"Acceptable\" type=\"radio\" value=\"yes\"> Yes<br><input name=\"Acceptable\" type=\"radio\" value=\"no\"> No<\/div>\n\n<div class=\"well well-lg\"><label>Provide additional feedback below:<\/label><textarea class=\"form-control\" name=\"feedback\" rows=\"3\"><\/textarea><\/div>\n<\/div>\n<\/div>\n<!-- End Collected Data --><\/div>\n<\/div>\n<\/div>",
    "questions": [
      {
        "question_id": "Q57ec68ceb8bdf",
        "name": "Acceptable",
        "required": true,
        "tag": "Input",
        "type": "radio"
      },
      {
        "question_id": "Q57ec68ceb8c4b",
        "name": "feedback",
        "required": true,
        "tag": "TextArea"
      }
    ],
    "variables": [
      "URL",
      "SCREENSHOT"
    ]
  }
}
{
  "status": "ERROR",
  "message": "TTVAPI-E0004:TTVTemplate-E0000:Template id (1234) not found."
}