API endpoint:
https://boky.in/api/v1/links
Exemplo de solicitação:
curl --location --request GET 'https://boky.in/api/v1/links' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
search_by
title
for Título, alias
for Alias, url
for URL. Defaults to: title
.status
0
for Tudo, 1
for Ativo, 2
for Expirado, 3
for Desabilitado. Defaults to: 0
.space
domain
pixel
sort_by
id
for Data Criada, clicks
for Cliques, title
for Título, alias
for Alias, url
for URL. Defaults to: id
.sort
desc
for Descendente, asc
for Ascendente. Defaults to: desc
.per_page
10
, 25
, 50
, 100
. Defaults to: 10
.API endpoint:
https://boky.in/api/v1/links/{id}
Exemplo de solicitação:
curl --location --request GET 'https://boky.in/api/v1/links/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API endpoint:
https://boky.in/api/v1/links
Exemplo de solicitação:
curl --location --request POST 'https://boky.in/api/v1/links' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}' \ --data-urlencode 'domain={id}'
url
domain
alias
password
space
pixels
disabled
0
for Ativo, 1
for Desabilitado. Defaults to: 0
.privacy
0
for Público, 1
for Privado, 2
for Senha. Defaults to: 0
.privacy_password
privacy
set to 2
.expiration_url
expiration_date
YYYY-MM-DD
format.expiration_time
HH:MM
format.expiration_clicks
target_type
0
for Nenhum, 1
for Geográfico, 2
for Plataforma, 4
for Rotação.country[index][key]
country[index][value]
platform[index][key]
iOS
, Android
, Windows
, OS X
, Linux
, Ubuntu
, Chrome OS
.platform[index][value]
language[index][key]
language[index][value]
rotation[index][value]
API endpoint:
https://boky.in/api/v1/links/{id}
Exemplo de solicitação:
curl --location --request PUT 'https://boky.in/api/v1/links/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
url
alias
password
space
pixels
disabled
0
for Ativo, 1
for Desabilitado.privacy
0
for Público, 1
for Privado, 2
for Senha.privacy_password
privacy
set to 2
.expiration_url
expiration_date
YYYY-MM-DD
format.expiration_time
HH:MM
format.expiration_clicks
target_type
0
for Nenhum, 1
for Geográfico, 2
for Plataforma, 4
for Rotação.country[index][key]
country[index][value]
platform[index][key]
iOS
, Android
, Windows
, OS X
, Linux
, Ubuntu
, Chrome OS
.platform[index][value]
language[index][key]
language[index][value]
rotation[index][value]
API endpoint:
https://boky.in/api/v1/links/{id}
Exemplo de solicitação:
curl --location --request DELETE 'https://boky.in/api/v1/links/{id}' \ --header 'Authorization: Bearer {api_key}'