taskId
:
required |
Integer
Task Id. Example values: 6767648 |
indexId
:
optional |
Integer
Index # of proof file. Example values: 1. |
curl -H "MicroworkersApiKey:YOUR_API_KEY" -X GET "https://ttv.microworkers.com/api/campaign/download_file_proof/B/2168e3b09815/format/json?taskId=6767648&indexId=1"
from pprint import pprint
from MW_API import MW_API
mw_api = MW_API('YOUR_API_KEY')
res = mw_api.do_request('GET','/campaign/download_file_proof/B/2168e3b09815/format/json', {"taskId" : 6767648, "indexId" : 1}, {})
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/download_file_proof/B/2168e3b09815/format/json', {
"taskId" => 6767648, "indexId" => 1
});
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/download_file_proof/B/2168e3b09815/format/json");
$client->setMethod("GET");
$client->setData(array("taskId" => 6767648, "indexId" => 1));
$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("taskId", 6767648);
postData.Add("indexId", 1);
string body = MW_API_Client.getRequest("/campaign/download_file_proof/B/2168e3b09815/format/json");
Console.WriteLine (body);
}
}
{ "status": "ERROR", "message": "TTVAPI-E0004:TTVCampaign-E0000:Campaign does not exists with id '2094d155266_HG'" }