Link
Endpoint API
https://clck.plus/api/v1/links
Esempio di richiesta
curl --location --request GET 'https://clck.plus/api/v1/links' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parametri
search
search_by
title per Titolo, alias per Alias, url per URL. Valore predefinito: title.
status
0 per Tutti, 1 per Attivo, 2 per Scaduto, 3 per Disattivato. Valore predefinito: 0.
space_id
domain_id
pixel_id
sort_by
id per Data di creazione, clicks per Clic, title per Titolo, alias per Alias, url per URL. Valore predefinito: id.
sort
desc per Decrescente, asc per Crescente. Valore predefinito: desc.
per_page
10, 25, 50, 100. Valore predefinito: 50.
Endpoint API
https://clck.plus/api/v1/links/{id}
Esempio di richiesta
curl --location --request GET 'https://clck.plus/api/v1/links/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
Endpoint API
https://clck.plus/api/v1/links
Esempio di richiesta
curl --location --request POST 'https://clck.plus/api/v1/links' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}' \ --data-urlencode 'domain={id}'
Parametri
url
domain_id
alias
space_id
pixel_ids[]
redirect_password
sensitive_content
0 per No, 1 per Sì. Valore predefinito: 0.
privacy
0 per Pubblico, 1 per Privato, 2 per Password. Valore predefinito: 0.
password
privacy è impostato su 2.
active_period_start_at
Y-m-dTH:i:s.
active_period_end_at
Y-m-dTH:i:s.
clicks_limit
expiration_url
targets_type
continents per Continents, countries per Countries, operating_systems per Operating systems, browsers per Browsers, languages per Languages, devices per Devices, rotations per Rotations.
targets[index][key]
Il valore di targets_type=country deve avere il formato ISO 3166-1 alpha-2.
Valori possibili per targets_type=operating_systems: iOS, Android, Windows, OS X, Linux, Ubuntu, Chrome OS.
Valori possibili per targets_type=browsers: Chrome, Chromium, Firefox, Firefox Mobile, Edge, Internet Explorer, Mobile Internet Explorer, Vivaldi, Brave, Safari, Opera, Opera Mini, Opera Mobile, Opera Touch, Yandex Browser, UC Browser, Samsung Internet, QQ Browser, BlackBerry Browser, Maxtho.
Valori possibili per targets_type=devices: Desktop, Mobile, Tablet, Watch, Television.
Il valore di targets_type=languages deve avere il formato ISO 639-1 alpha-2.
Valori possibili per targets_type=continents: AF per Africa, AN per Antarctica, AS per Asia, EU per Europe, NA per North America, OC per Oceania, SA per South America.
targets[index][value]
Endpoint API
https://clck.plus/api/v1/links/{id}
Esempio di richiesta
curl --location --request PUT 'https://clck.plus/api/v1/links/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
Parametri
url
alias
space_id
pixel_ids[]
redirect_password
sensitive_content
0 per No, 1 per Sì.
privacy
0 per Pubblico, 1 per Privato, 2 per Password.
password
privacy è impostato su 2.
active_period_start_at
Y-m-dTH:i:s.
active_period_end_at
Y-m-dTH:i:s.
clicks_limit
expiration_url
targets_type
continents per Continents, countries per Countries, operating_systems per Operating systems, browsers per Browsers, languages per Languages, devices per Devices, rotations per Rotations.
targets[index][key]
Il valore di targets_type=country deve avere il formato ISO 3166-1 alpha-2.
Valori possibili per targets_type=operating_systems: iOS, Android, Windows, OS X, Linux, Ubuntu, Chrome OS.
Valori possibili per targets_type=browsers: Chrome, Chromium, Firefox, Firefox Mobile, Edge, Internet Explorer, Mobile Internet Explorer, Vivaldi, Brave, Safari, Opera, Opera Mini, Opera Mobile, Opera Touch, Yandex Browser, UC Browser, Samsung Internet, QQ Browser, BlackBerry Browser, Maxtho.
Valori possibili per targets_type=devices: Desktop, Mobile, Tablet, Watch, Television.
Il valore di targets_type=languages deve avere il formato ISO 639-1 alpha-2.
Valori possibili per targets_type=continents: AF per Africa, AN per Antarctica, AS per Asia, EU per Europe, NA per North America, OC per Oceania, SA per South America.
targets[index][value]
Endpoint API
https://clck.plus/api/v1/links/{id}
Esempio di richiesta
curl --location --request DELETE 'https://clck.plus/api/v1/links/{id}' \ --header 'Authorization: Bearer {api_key}'