Get Pixels
curl --request GET \
--url https://api.aimtell.com/prod/pixels/{idSite} \
--header 'X-Authorization-Api-Key: <api-key>'import requests
url = "https://api.aimtell.com/prod/pixels/{idSite}"
headers = {"X-Authorization-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Authorization-Api-Key': '<api-key>'}};
fetch('https://api.aimtell.com/prod/pixels/{idSite}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aimtell.com/prod/pixels/{idSite}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Authorization-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aimtell.com/prod/pixels/{idSite}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Authorization-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aimtell.com/prod/pixels/{idSite}")
.header("X-Authorization-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aimtell.com/prod/pixels/{idSite}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Authorization-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": 123,
"idSite": 179,
"name": "Tracking Pixel",
"value": "{\"event_category\":\"video\",\"event_action\":\"watched\",\"event_label\":\"promo\",\"event_value\":2}",
"active": "1",
"createdAt": "2021-01-15 22:26:16"
},
{
"id": 456,
"idSite": 179,
"name": "Pixel 2",
"value": "{\"event_category\":\"Item\",\"event_action\":\"Purchased\",\"event_label\":\"shoes\",\"event_value\":\"10\"}",
"active": "1",
"createdAt": "2021-01-15 22:26:16"
}
]{
"result": "error",
"message": "Invalid token.",
"error_code": 71831
}Pixels
Get Pixels
Fetches the cross domain tracking pixels for a website
GET
/
prod
/
pixels
/
{idSite}
Get Pixels
curl --request GET \
--url https://api.aimtell.com/prod/pixels/{idSite} \
--header 'X-Authorization-Api-Key: <api-key>'import requests
url = "https://api.aimtell.com/prod/pixels/{idSite}"
headers = {"X-Authorization-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Authorization-Api-Key': '<api-key>'}};
fetch('https://api.aimtell.com/prod/pixels/{idSite}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aimtell.com/prod/pixels/{idSite}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Authorization-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aimtell.com/prod/pixels/{idSite}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Authorization-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aimtell.com/prod/pixels/{idSite}")
.header("X-Authorization-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aimtell.com/prod/pixels/{idSite}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Authorization-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": 123,
"idSite": 179,
"name": "Tracking Pixel",
"value": "{\"event_category\":\"video\",\"event_action\":\"watched\",\"event_label\":\"promo\",\"event_value\":2}",
"active": "1",
"createdAt": "2021-01-15 22:26:16"
},
{
"id": 456,
"idSite": 179,
"name": "Pixel 2",
"value": "{\"event_category\":\"Item\",\"event_action\":\"Purchased\",\"event_label\":\"shoes\",\"event_value\":\"10\"}",
"active": "1",
"createdAt": "2021-01-15 22:26:16"
}
]{
"result": "error",
"message": "Invalid token.",
"error_code": 71831
}⌘I

