Pixeli
GET https://heo.li/api/pixels/
curl --request GET \
--url 'https://heo.li/api/pixels/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://heo.li/api/pixels/' \
--header 'Authorization: Bearer {api_key}' \
| Parametri | Detalii | Descriere |
|---|---|---|
| page | Opțional Întreg | Numărul paginii de la care doriți rezultatele. Implicit 1 |
| results_per_page | Opțional Întreg | Câte rezultate doriți pe pagină. Valorile permise sunt: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Implicit este 25. |
{
"data": [
{
"id": 1,
"type": "facebook",
"name": "Fb Ads",
"pixel": "1234567",
"last_datetime": null,
"datetime": "2025-10-29 19:39:13",
},
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://heo.li/api/pixels?page=1",
"last": "https://heo.li/api/pixels?page=1",
"next": null,
"prev": null,
"self": "https://heo.li/api/pixels?page=1"
}
}
GET https://heo.li/api/pixels/{pixel_id}
curl --request GET \
--url 'https://heo.li/api/pixels/{pixel_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://heo.li/api/pixels/{pixel_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"type": "facebook",
"name": "Fb Ads",
"pixel": "1234567",
"last_datetime": null,
"datetime": "2025-10-29 19:39:13",
}
}
POST https://heo.li/api/pixels
| Parametri | Detalii | Descriere |
|---|---|---|
| type | Obligatoriu Șir | Valori permise: facebook , google_analytics , google_tag_manager , linkedin , pinterest , twitter , quora , tiktok , snapchat |
| name | Obligatoriu Șir | - |
| pixel | Obligatoriu Șir | - |
curl --request POST \
--url 'https://heo.li/api/pixels' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'type=facebook' \
--form 'name=Facebook' \
--form 'pixel=12345678' \
--url 'https://heo.li/api/pixels' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'type=facebook' \
--form 'name=Facebook' \
--form 'pixel=12345678' \
{
"data": {
"id": 1
}
}
POST https://heo.li/api/pixels/{pixel_id}
| Parametri | Detalii | Descriere |
|---|---|---|
| type | Opțional Șir | Valori permise: facebook , google_analytics , google_tag_manager , linkedin , pinterest , twitter , quora , tiktok , snapchat |
| name | Opțional Șir | - |
| pixel | Opțional Șir | - |
curl --request POST \
--url 'https://heo.li/api/pixels/{pixel_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Facebook New Name' \
--url 'https://heo.li/api/pixels/{pixel_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Facebook New Name' \
{
"data": {
"id": 1
}
}
DELETE https://heo.li/api/pixels/{pixel_id}
curl --request DELETE \
--url 'https://heo.li/api/pixels/{pixel_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://heo.li/api/pixels/{pixel_id}' \
--header 'Authorization: Bearer {api_key}' \