pixelStart
start job
Add pixel
/pixel
Usage and SDK Samples
curl -X POST \
-H "x-api-key: [[apiKey]]" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://api.imdatacenter.com/1.0/pixel" \
-d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AddPixelApi;
import java.io.File;
import java.util.*;
public class AddPixelApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
// Create an instance of the API class
AddPixelApi apiInstance = new AddPixelApi();
PixelStartRequest body = ; // PixelStartRequest |
try {
pixel_start_201_response result = apiInstance.pixelStart(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AddPixelApi#pixelStart");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.AddPixelApi;
public class AddPixelApiExample {
public static void main(String[] args) {
AddPixelApi apiInstance = new AddPixelApi();
PixelStartRequest body = ; // PixelStartRequest |
try {
pixel_start_201_response result = apiInstance.pixelStart(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AddPixelApi#pixelStart");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"x-api-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"x-api-key"];
// Create an instance of the API class
AddPixelApi *apiInstance = [[AddPixelApi alloc] init];
PixelStartRequest *body = ; //
// start job
[apiInstance pixelStartWith:body
completionHandler: ^(pixel_start_201_response output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var IntegratedMarketingDatacenterApi = require('integrated_marketing_datacenter_api');
var defaultClient = IntegratedMarketingDatacenterApi.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix['x-api-key'] = "Token";
// Create an instance of the API class
var api = new IntegratedMarketingDatacenterApi.AddPixelApi()
var body = ; // {PixelStartRequest}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.pixelStart(body, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class pixelStartExample
{
public void main()
{
// Configure API key authorization: api_key
Configuration.Default.ApiKey.Add("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("x-api-key", "Bearer");
// Create an instance of the API class
var apiInstance = new AddPixelApi();
var body = new PixelStartRequest(); // PixelStartRequest |
try {
// start job
pixel_start_201_response result = apiInstance.pixelStart(body);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling AddPixelApi.pixelStart: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AddPixelApi();
$body = ; // PixelStartRequest |
try {
$result = $api_instance->pixelStart($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AddPixelApi->pixelStart: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AddPixelApi;
# Configure API key authorization: api_key
$WWW::OPenAPIClient::Configuration::api_key->{'x-api-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'x-api-key'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AddPixelApi->new();
my $body = WWW::OPenAPIClient::Object::PixelStartRequest->new(); # PixelStartRequest |
eval {
my $result = $api_instance->pixelStart(body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AddPixelApi->pixelStart: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
openapi_client.configuration.api_key['x-api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['x-api-key'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.AddPixelApi()
body = # PixelStartRequest |
try:
# start job
api_response = api_instance.pixel_start(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling AddPixelApi->pixelStart: %s\n" % e)
extern crate AddPixelApi;
pub fn main() {
let body = ; // PixelStartRequest
let mut context = AddPixelApi::Context::default();
let result = client.pixelStart(body, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
| Name | Description |
|---|---|
| body * |
Website information |