Pixels

Observação
Nível Expert
A chave API deve ser enviada como um token do portador no cabeçalho de autorização da solicitação. Obtenha sua chave de API.
Lista

API endpoint:

GET
https://sht.gd/api/v1/pixels

Request example:

curl --location --request GET 'https://sht.gd/api/v1/pixels' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameter
Tipo
Descrição
search
opcional string
A consulta de pesquisa.
search_by
opcional string
Pesquisar por. Os valores possíveis são: name for Nome. Padrões para: name.
type
opcional string
O tipo de pixel. Os valores possíveis são: adroll, bing, facebook, google-ads, google-analytics, google-tag-manager, linkedin, pinterest, quora, x.
sort_by
opcional string
Ordenar por. Os valores possíveis são: id for Data criada, name for Nome. Padrões para: id.
sort
opcional string
Ordenar por. Os valores possíveis são: desc for Descendente, asc for Ascendente. Padrões para: desc.
per_page
opcional integer
Resultados por página. Os valores possíveis são: 10, 25, 50, 100. Padrões para: 10.
Mostrar

API endpoint:

GET
https://sht.gd/api/v1/pixels/{id}

Request example:

curl --location --request GET 'https://sht.gd/api/v1/pixels/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Store

API endpoint:

POST
https://sht.gd/api/v1/pixels

Request example:

curl --location --request POST 'https://sht.gd/api/v1/pixels' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'name={name}' \
--data-urlencode 'type={type}' \
--data-urlencode 'value={value}'
Parameter
Tipo
Descrição
name
requerido string
O nome do pixel.
type
requerido string
O tipo de pixel. Os valores possíveis são: adroll, bing, facebook, google-ads, google-analytics, google-tag-manager, linkedin, pinterest, quora, x.
value
requerido string
O valor do ID do pixel.
Atualizar

API endpoint:

PUT PATCH
https://sht.gd/api/v1/pixels/{id}

Request example:

curl --location --request PUT 'https://sht.gd/api/v1/pixels/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
Parameter
Tipo
Descrição
name
opcional string
O nome do pixel.
type
opcional string
O tipo de pixel. Os valores possíveis são: adroll, bing, facebook, google-ads, google-analytics, google-tag-manager, linkedin, pinterest, quora, x.
value
opcional string
O valor do ID do pixel.
Excluir

API endpoint:

DELETE
https://sht.gd/api/v1/pixels/{id}

Request example:

curl --location --request DELETE 'https://sht.gd/api/v1/pixels/{id}' \
--header 'Authorization: Bearer {api_key}'