Links
GET https://sqr.co/api/links/
curl --request GET \
--url 'https://sqr.co/api/links/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://sqr.co/api/links/' \
--header 'Authorization: Bearer {api_key}' \
Parameters | Details | Beschrijving |
---|---|---|
page | Optioneel Geheel getal | Het paginanummer waarvan u resultaten wilt. Standaard ingesteld op 1 . |
results_per_page | Optioneel Geheel getal | Hoeveel resultaten wil je per pagina. Toegestane waarden zijn: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Standaard ingesteld op 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
},
"pageviews": 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://sqr.co/api/links?&page=1",
"last": "https://sqr.co/api/links?&page=1",
"next": null,
"prev": null,
"self": "https://sqr.co/api/links?&page=1"
}
}
GET https://sqr.co/api/links/{link_id}
curl --request GET \
--url 'https://sqr.co/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://sqr.co/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
},
"pageviews": 10,
"order": 0,
"start_date": null,
"end_date": null,
"date": "2020-11-15 12:00:00"
}
}
POST https://sqr.co/api/links
Parameters | Details | Beschrijving |
---|---|---|
location_url | Vereist String | De URL van de bestemming |
url | Optioneel String | De URL-alias van de gegenereerde link. Laat leeg voor een willekeurig gegenereerde. |
domain_id | Optioneel Geheel getal | - |
project_id | Optioneel Geheel getal | - |
pixels_ids | Optioneel Array Geheel getal | - |
schedule | Optioneel Booleaanse | - |
start_date | Optioneel String | Available when: schedule = true |
end_date | Optioneel String | Available when: schedule = true |
pageviews_limit | Optioneel Geheel getal | - |
expiration_url | Optioneel String | - |
password | Optioneel String | - |
forward_query_parameters_is_enabled | Optioneel Booleaanse | - |
utm_source | Optioneel missing_translation: api_documentation.strings | - |
utm_medium | Optioneel missing_translation: api_documentation.strings | - |
utm_campaign | Optioneel missing_translation: api_documentation.strings | - |
sensitive_content | Optioneel Booleaanse | - |
http_status_code | Optioneel Geheel getal | Toegestane waarden: 301 , 302 , 307 , 308 |
app_linking_is_enabled | Optioneel Booleaanse | - |
cloaking_is_enabled | Optioneel Booleaanse | - |
cloaking_title | Optioneel String | - |
cloaking_favicon | Optioneel Bestand | - |
cloaking_opengraph | Optioneel Bestand | - |
targeting_type | Optioneel String | continent_code , country_code , city_name , device_type , browser_language , rotation , os_name , browser_name |
targeting_continent_code_key[index] | Optioneel String | (targeting_type=continent_code) |
targeting_continent_code_value[index] | Optioneel String | (targeting_type=continent_code) |
targeting_country_code_key[index] | Optioneel String | (targeting_type=country_code) |
targeting_country_code_value[index] | Optioneel String | (targeting_type=country_code) |
targeting_city_name_key[index] | Optioneel String | (targeting_type=city_name) |
targeting_city_name_value[index] | Optioneel String | (targeting_type=city_name) |
targeting_device_type_key[index] | Optioneel String | (targeting_type=device_type) |
targeting_device_type_value[index] | Optioneel String | (targeting_type=device_type) |
targeting_browser_language_key[index] | Optioneel String | (targeting_type=browser_language) |
targeting_browser_language_value[index] | Optioneel String | (targeting_type=browser_language) |
targeting_rotation_key[index] | Optioneel String | (targeting_type=rotation) |
targeting_rotation_value[index] | Optioneel String | (targeting_type=rotation) |
targeting_os_name_key[index] | Optioneel String | (targeting_type=os_name) |
targeting_os_name_value[index] | Optioneel String | (targeting_type=os_name) |
targeting_browser_name_key[index] | Optioneel String | (targeting_type=browser_name) |
targeting_browser_name_value[index] | Optioneel String | (targeting_type=browser_name) |
curl --request POST \
--url 'https://sqr.co/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://sqr.co/' \
--url 'https://sqr.co/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://sqr.co/' \
{
"data": {
"id": 1
}
}
POST https://sqr.co/api/links/{link_id}
Parameters | Details | Beschrijving |
---|---|---|
location_url | Optioneel String | De URL van de bestemming |
url | Optioneel String | De URL-alias van de gegenereerde link. Laat leeg voor een willekeurig gegenereerde. |
domain_id | Optioneel Geheel getal | - |
project_id | Optioneel Geheel getal | - |
pixels_ids | Optioneel Array Geheel getal | - |
schedule | Optioneel Booleaanse | - |
start_date | Optioneel String | Available when: schedule = true |
end_date | Optioneel String | Available when: schedule = true |
pageviews_limit | Optioneel Geheel getal | - |
expiration_url | Optioneel String | - |
password | Optioneel String | - |
forward_query_parameters_is_enabled | Optioneel Booleaanse | - |
utm_source | Optioneel missing_translation: api_documentation.strings | - |
utm_medium | Optioneel missing_translation: api_documentation.strings | - |
utm_campaign | Optioneel missing_translation: api_documentation.strings | - |
sensitive_content | Optioneel Booleaanse | - |
http_status_code | Optioneel Geheel getal | Toegestane waarden: 301 , 302 , 307 , 308 |
app_linking_is_enabled | Optioneel Booleaanse | - |
cloaking_is_enabled | Optioneel Booleaanse | - |
cloaking_title | Optioneel String | - |
cloaking_favicon | Optioneel Bestand | - |
cloaking_opengraph | Optioneel Bestand | - |
targeting_type | Optioneel String | continent_code , country_code , city_name , device_type , browser_language , rotation , os_name , browser_name |
targeting_continent_code_key[index] | Optioneel String | (targeting_type=continent_code) |
targeting_continent_code_value[index] | Optioneel String | (targeting_type=continent_code) |
targeting_country_code_key[index] | Optioneel String | (targeting_type=country_code) |
targeting_country_code_value[index] | Optioneel String | (targeting_type=country_code) |
targeting_city_name_key[index] | Optioneel String | (targeting_type=city_name) |
targeting_city_name_value[index] | Optioneel String | (targeting_type=city_name) |
targeting_device_type_key[index] | Optioneel String | (targeting_type=device_type) |
targeting_device_type_value[index] | Optioneel String | (targeting_type=device_type) |
targeting_browser_language_key[index] | Optioneel String | (targeting_type=browser_language) |
targeting_browser_language_value[index] | Optioneel String | (targeting_type=browser_language) |
targeting_rotation_key[index] | Optioneel String | (targeting_type=rotation) |
targeting_rotation_value[index] | Optioneel String | (targeting_type=rotation) |
targeting_os_name_key[index] | Optioneel String | (targeting_type=os_name) |
targeting_os_name_value[index] | Optioneel String | (targeting_type=os_name) |
targeting_browser_name_key[index] | Optioneel String | (targeting_type=browser_name) |
targeting_browser_name_value[index] | Optioneel String | (targeting_type=browser_name) |
curl --request POST \
--url 'https://sqr.co/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
--url 'https://sqr.co/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
{
"data": {
"id": 1
}
}
DELETE https://sqr.co/api/links/{link_id}
curl --request DELETE \
--url 'https://sqr.co/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://sqr.co/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \