Links
GET https://linktrle.com/api/links/
curl --request GET \
--url 'https://linktrle.com/api/links/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://linktrle.com/api/links/' \
--header 'Authorization: Bearer {api_key}' \
Parametre | Detaljer | Beskrivelse |
---|---|---|
page | Valgfri Heltal | Sidenummeret, som du ønsker resultater fra. Standardværdien er 1 . |
results_per_page | Valgfri Heltal | Hvor mange resultater ønsker du pr. side. Tilladte værdier er: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Standardværdi er 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://linktrle.com/api/links?&page=1",
"last": "https://linktrle.com/api/links?&page=1",
"next": null,
"prev": null,
"self": "https://linktrle.com/api/links?&page=1"
}
}
GET https://linktrle.com/api/links/{link_id}
curl --request GET \
--url 'https://linktrle.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://linktrle.com/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://linktrle.com/api/links
Parametre | Detaljer | Beskrivelse |
---|---|---|
type | Valgfri Streng | link |
location_url | Påkrævet Streng | Måldestinationens webadresse |
url | Valgfri Streng | URL-aliasen for det genererede link. Efterlad tom for en tilfældigt genereret. |
domain_id | Valgfri Heltal | - |
project_id | Valgfri Heltal | - |
pixels_ids | Valgfri Array Heltal | - |
schedule | Valgfri Boolesk | - |
start_date | Valgfri Streng | Tilgængelig når: schedule = true |
end_date | Valgfri Streng | Tilgængelig når: schedule = true |
clicks_limit | Valgfri Heltal | - |
expiration_url | Valgfri Streng | - |
sensitive_content | Valgfri Boolesk | - |
http_status_code | Valgfri Heltal | Tilladte værdier: 301 , 302 , 307 , 308 |
app_linking_is_enabled | Valgfri Boolesk | - |
cloaking_is_enabled | Valgfri Boolesk | - |
cloaking_title | Valgfri Streng | - |
cloaking_favicon | Valgfri Fil | - |
password | Valgfri Streng | - |
forward_query_parameters_is_enabled | Valgfri Boolesk | - |
utm_source | Valgfri missing_translation: api_documentation.strings | - |
utm_medium | Valgfri missing_translation: api_documentation.strings | - |
utm_campaign | Valgfri missing_translation: api_documentation.strings | - |
targeting_type | Valgfri Streng | country_code , device_type , browser_language , rotation , os_name |
targeting_country_code_key[index] | Valgfri Streng | (targeting_type=country_code) |
targeting_country_code_value[index] | Valgfri Streng | (targeting_type=country_code) |
targeting_device_type_key[index] | Valgfri Streng | (targeting_type=device_type) |
targeting_device_type_value[index] | Valgfri Streng | (targeting_type=device_type) |
targeting_browser_language_key[index] | Valgfri Streng | (targeting_type=browser_language) |
targeting_browser_language_value[index] | Valgfri Streng | (targeting_type=browser_language) |
targeting_rotation_key[index] | Valgfri Streng | (targeting_type=rotation) |
targeting_rotation_value[index] | Valgfri Streng | (targeting_type=rotation) |
targeting_os_name_key[index] | Valgfri Streng | (targeting_type=os_name) |
targeting_os_name_value[index] | Valgfri Streng | (targeting_type=os_name) |
curl --request POST \
--url 'https://linktrle.com/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://linktrle.com/' \
--url 'https://linktrle.com/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://linktrle.com/' \
{
"data": {
"id": 1
}
}
POST https://linktrle.com/api/links/{link_id}
Parametre | Detaljer | Beskrivelse |
---|---|---|
location_url | Valgfri Streng | Måldestinationens webadresse |
url | Valgfri Streng | URL-aliasen for det genererede link. Efterlad tom for en tilfældigt genereret. |
domain_id | Valgfri Heltal | - |
project_id | Valgfri Heltal | - |
pixels_ids | Valgfri Array Heltal | - |
schedule | Valgfri Boolesk | - |
start_date | Valgfri Streng | Tilgængelig når: schedule = true |
end_date | Valgfri Streng | Tilgængelig når: schedule = true |
clicks_limit | Valgfri Heltal | - |
expiration_url | Valgfri Streng | - |
sensitive_content | Valgfri Boolesk | - |
http_status_code | Valgfri Heltal | Tilladte værdier: 301 , 302 , 307 , 308 |
app_linking_is_enabled | Valgfri Boolesk | - |
cloaking_is_enabled | Valgfri Boolesk | - |
cloaking_title | Valgfri Streng | - |
cloaking_favicon | Valgfri Fil | - |
password | Valgfri Streng | - |
forward_query_parameters_is_enabled | Valgfri Boolesk | - |
utm_source | Valgfri missing_translation: api_documentation.strings | - |
utm_medium | Valgfri missing_translation: api_documentation.strings | - |
utm_campaign | Valgfri missing_translation: api_documentation.strings | - |
targeting_type | Valgfri Streng | country_code , device_type , browser_language , rotation , os_name |
targeting_country_code_key[index] | Valgfri Streng | (targeting_type=country_code) |
targeting_country_code_value[index] | Valgfri Streng | (targeting_type=country_code) |
targeting_device_type_key[index] | Valgfri Streng | (targeting_type=device_type) |
targeting_device_type_value[index] | Valgfri Streng | (targeting_type=device_type) |
targeting_browser_language_key[index] | Valgfri Streng | (targeting_type=browser_language) |
targeting_browser_language_value[index] | Valgfri Streng | (targeting_type=browser_language) |
targeting_rotation_key[index] | Valgfri Streng | (targeting_type=rotation) |
targeting_rotation_value[index] | Valgfri Streng | (targeting_type=rotation) |
targeting_os_name_key[index] | Valgfri Streng | (targeting_type=os_name) |
targeting_os_name_value[index] | Valgfri Streng | (targeting_type=os_name) |
curl --request POST \
--url 'https://linktrle.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
--url 'https://linktrle.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
{
"data": {
"id": 1
}
}
DELETE https://linktrle.com/api/links/{link_id}
curl --request DELETE \
--url 'https://linktrle.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://linktrle.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \