Liens
GET https://kloo.me/api/links/
curl --request GET \
--url 'https://kloo.me/api/links/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://kloo.me/api/links/' \
--header 'Authorization: Bearer {api_key}' \
| Paramètres | Détails | Description |
|---|---|---|
| page | En option Entier | Le numéro de page à partir duquel vous voulez obtenir des résultats. La valeur par défaut est 1. |
| results_per_page | En option Entier | Combien de résultats vous souhaitez obtenir par page. Les valeurs autorisées sont : 10 , 25 , 50 , 100 , 250 , 500. La valeur par défaut est 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://kloo.me/api/links?&page=1",
"last": "https://kloo.me/api/links?&page=1",
"next": null,
"prev": null,
"self": "https://kloo.me/api/links?&page=1"
}
}
GET https://kloo.me/api/links/{link_id}
curl --request GET \
--url 'https://kloo.me/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://kloo.me/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://kloo.me/api/links
| Paramètres | Détails | Description |
|---|---|---|
| type | En option Chaîne de caractères | link |
| location_url | Requis Chaîne de caractères | L'URL de la destination. |
| url | En option Chaîne de caractères | L'alias de l\'URL du lien généré. Laissez vide pour un généré aléatoirement. |
| domain_id | En option Entier | - |
| project_id | En option Entier | - |
| pixels_ids | En option Tableau Entier | - |
| schedule | En option Booléen | - |
| start_date | En option Chaîne de caractères | (schedule=true) |
| end_date | En option Chaîne de caractères | (schedule=true) |
| clicks_limit | En option Entier | - |
| expiration_url | En option Chaîne de caractères | - |
| sensitive_content | En option Booléen | - |
| passsword | En option Chaîne de caractères | - |
| targeting_type | En option Chaîne de caractères | country_code , device_type , browser_language , rotation , os_name |
| targeting_country_code_key[index] | En option Entier | (targeting_type=country_code) |
| targeting_country_code_value[index] | En option Chaîne de caractères | (targeting_type=country_code) |
| targeting_device_type_key[index] | En option Entier | (targeting_type=device_type) |
| targeting_device_type_value[index] | En option Chaîne de caractères | (targeting_type=device_type) |
| targeting_browser_language_key[index] | En option Entier | (targeting_type=browser_language) |
| targeting_browser_language_value[index] | En option Chaîne de caractères | (targeting_type=browser_language) |
| targeting_rotation_key[index] | En option Entier | (targeting_type=rotation) |
| targeting_rotation_value[index] | En option Chaîne de caractères | (targeting_type=rotation) |
| targeting_os_name_key[index] | En option Entier | (targeting_type=os_name) |
| targeting_os_name_value[index] | En option Chaîne de caractères | (targeting_type=os_name) |
curl --request POST \
--url 'https://kloo.me/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://kloo.me/' \
--url 'https://kloo.me/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://kloo.me/' \
{
"data": {
"id": 1
}
}
POST https://kloo.me/api/links/{link_id}
| Paramètres | Détails | Description |
|---|---|---|
| location_url | En option Chaîne de caractères | L'URL de la destination. |
| url | En option Chaîne de caractères | L'alias de l\'URL du lien généré. Laissez vide pour un généré aléatoirement. |
| domain_id | En option Entier | - |
| project_id | En option Entier | - |
| pixels_ids | En option Tableau Entier | - |
| schedule | En option Booléen | - |
| start_date | En option Chaîne de caractères | (schedule=true) |
| end_date | En option Chaîne de caractères | (schedule=true) |
| clicks_limit | En option Entier | - |
| expiration_url | En option Chaîne de caractères | - |
| sensitive_content | En option Booléen | - |
| passsword | En option Chaîne de caractères | - |
| targeting_type | En option Chaîne de caractères | country_code , device_type , browser_language , rotation , os_name |
| targeting_country_code_key[index] | En option Entier | (targeting_type=country_code) |
| targeting_country_code_value[index] | En option Chaîne de caractères | (targeting_type=country_code) |
| targeting_device_type_key[index] | En option Entier | (targeting_type=device_type) |
| targeting_device_type_value[index] | En option Chaîne de caractères | (targeting_type=device_type) |
| targeting_browser_language_key[index] | En option Entier | (targeting_type=browser_language) |
| targeting_browser_language_value[index] | En option Chaîne de caractères | (targeting_type=browser_language) |
| targeting_rotation_key[index] | En option Entier | (targeting_type=rotation) |
| targeting_rotation_value[index] | En option Chaîne de caractères | (targeting_type=rotation) |
| targeting_os_name_key[index] | En option Entier | (targeting_type=os_name) |
| targeting_os_name_value[index] | En option Chaîne de caractères | (targeting_type=os_name) |
curl --request POST \
--url 'https://kloo.me/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
--url 'https://kloo.me/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
{
"data": {
"id": 1
}
}
DELETE https://kloo.me/api/links/{link_id}
curl --request DELETE \
--url 'https://kloo.me/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://kloo.me/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \