Links
GET https://easytap.com.br/api/links/
curl --request GET \
--url 'https://easytap.com.br/api/links/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://easytap.com.br/api/links/' \
--header 'Authorization: Bearer {api_key}' \
Parameters | Detalhes | Descrição |
---|---|---|
page | Opcional Integer | O número da página da qual você deseja resultados. O padrão é 1 . |
results_per_page | Opcional Integer | Quantos resultados você deseja por página. Os valores permitidos são: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . O padrão é 25 . |
{
"data": [
{
"id": 1,
"project_id": null,
"domain_id": 0,
"type": "link",
"url": "example",
"location_url": "https://example.com/",
"settings": {
"password": null,
"sensitive_content": false
},
"clicks": 10,
"order": 0,
"start_date": null,
"end_date": null,
"date": "2020-11-15 12:00:00"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://easytap.com.br/api/links?&page=1",
"last": "https://easytap.com.br/api/links?&page=1",
"next": null,
"prev": null,
"self": "https://easytap.com.br/api/links?&page=1"
}
}
GET https://easytap.com.br/api/links/{link_id}
curl --request GET \
--url 'https://easytap.com.br/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://easytap.com.br/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"project_id": null,
"domain_id": 0,
"type": "link",
"url": "example",
"location_url": "https://example.com/",
"settings": {
"password": null,
"sensitive_content": false
},
"clicks": 10,
"order": 0,
"start_date": null,
"end_date": null,
"date": "2020-11-15 12:00:00"
}
}
POST https://easytap.com.br/api/links
Parameters | Detalhes | Descrição |
---|---|---|
type | Opcional String | link |
location_url | Obrigatório String | A URL do destino. |
url | Opcional String | O alias da URL do link gerado. Deixe em branco para um gerado aleatoriamente. |
domain_id | Opcional Integer | - |
project_id | Opcional Integer | - |
pixels_ids | Opcional Boolean Integer | - |
schedule | Opcional Boolean | - |
start_date | Opcional String | Disponível quando: schedule = true |
end_date | Opcional String | Disponível quando: schedule = true |
clicks_limit | Opcional Integer | - |
expiration_url | Opcional String | - |
sensitive_content | Opcional Boolean | - |
http_status_code | Opcional Integer | Valores permitidos: 301 , 302 , 307 , 308 |
app_linking_is_enabled | Opcional Boolean | - |
cloaking_is_enabled | Opcional Boolean | - |
cloaking_title | Opcional String | - |
cloaking_favicon | Opcional Boolean | - |
password | Opcional String | - |
forward_query_parameters_is_enabled | Opcional Boolean | - |
utm_source | Opcional missing_translation: api_documentation.strings | - |
utm_medium | Opcional missing_translation: api_documentation.strings | - |
utm_campaign | Opcional missing_translation: api_documentation.strings | - |
targeting_type | Opcional String | country_code , device_type , browser_language , rotation , os_name |
targeting_country_code_key[index] | Opcional String | (targeting_type=country_code) |
targeting_country_code_value[index] | Opcional String | (targeting_type=country_code) |
targeting_device_type_key[index] | Opcional String | (targeting_type=device_type) |
targeting_device_type_value[index] | Opcional String | (targeting_type=device_type) |
targeting_browser_language_key[index] | Opcional String | (targeting_type=browser_language) |
targeting_browser_language_value[index] | Opcional String | (targeting_type=browser_language) |
targeting_rotation_key[index] | Opcional String | (targeting_type=rotation) |
targeting_rotation_value[index] | Opcional String | (targeting_type=rotation) |
targeting_os_name_key[index] | Opcional String | (targeting_type=os_name) |
targeting_os_name_value[index] | Opcional String | (targeting_type=os_name) |
curl --request POST \
--url 'https://easytap.com.br/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://easytap.com.br/' \
--url 'https://easytap.com.br/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://easytap.com.br/' \
{
"data": {
"id": 1
}
}
POST https://easytap.com.br/api/links/{link_id}
Parameters | Detalhes | Descrição |
---|---|---|
location_url | Opcional String | A URL do destino. |
url | Opcional String | O alias da URL do link gerado. Deixe em branco para um gerado aleatoriamente. |
domain_id | Opcional Integer | - |
project_id | Opcional Integer | - |
pixels_ids | Opcional Boolean Integer | - |
schedule | Opcional Boolean | - |
start_date | Opcional String | Disponível quando: schedule = true |
end_date | Opcional String | Disponível quando: schedule = true |
clicks_limit | Opcional Integer | - |
expiration_url | Opcional String | - |
sensitive_content | Opcional Boolean | - |
http_status_code | Opcional Integer | Valores permitidos: 301 , 302 , 307 , 308 |
app_linking_is_enabled | Opcional Boolean | - |
cloaking_is_enabled | Opcional Boolean | - |
cloaking_title | Opcional String | - |
cloaking_favicon | Opcional Boolean | - |
password | Opcional String | - |
forward_query_parameters_is_enabled | Opcional Boolean | - |
utm_source | Opcional missing_translation: api_documentation.strings | - |
utm_medium | Opcional missing_translation: api_documentation.strings | - |
utm_campaign | Opcional missing_translation: api_documentation.strings | - |
targeting_type | Opcional String | country_code , device_type , browser_language , rotation , os_name |
targeting_country_code_key[index] | Opcional String | (targeting_type=country_code) |
targeting_country_code_value[index] | Opcional String | (targeting_type=country_code) |
targeting_device_type_key[index] | Opcional String | (targeting_type=device_type) |
targeting_device_type_value[index] | Opcional String | (targeting_type=device_type) |
targeting_browser_language_key[index] | Opcional String | (targeting_type=browser_language) |
targeting_browser_language_value[index] | Opcional String | (targeting_type=browser_language) |
targeting_rotation_key[index] | Opcional String | (targeting_type=rotation) |
targeting_rotation_value[index] | Opcional String | (targeting_type=rotation) |
targeting_os_name_key[index] | Opcional String | (targeting_type=os_name) |
targeting_os_name_value[index] | Opcional String | (targeting_type=os_name) |
curl --request POST \
--url 'https://easytap.com.br/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
--url 'https://easytap.com.br/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
{
"data": {
"id": 1
}
}
DELETE https://easytap.com.br/api/links/{link_id}
curl --request DELETE \
--url 'https://easytap.com.br/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://easytap.com.br/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \