Ссылки
API эндпоинт
https://clck.plus/api/v1/links
Пример запроса
curl --location --request GET 'https://clck.plus/api/v1/links' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Параметры
search
search_by
title для Заголовок, alias для Псевдоним, url для URL. По умолчанию: title.
status
0 для Все, 1 для Активно, 2 для Истекший, 3 для Отключенный. По умолчанию: 0.
space_id
domain_id
pixel_id
sort_by
id для По убыванию, clicks для Клики, title для Заголовок, alias для Псевдоним, url для URL. По умолчанию: id.
sort
desc для По убыванию, asc для По возрастанию. По умолчанию: desc.
per_page
10, 25, 50, 100. По умолчанию: 50.
API эндпоинт
https://clck.plus/api/v1/links/{id}
Пример запроса
curl --location --request GET 'https://clck.plus/api/v1/links/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API эндпоинт
https://clck.plus/api/v1/links
Пример запроса
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}'
Параметры
url
domain_id
alias
space_id
pixel_ids[]
redirect_password
sensitive_content
0 для Нет, 1 для Да. По умолчанию: 0.
privacy
0 для Публичный, 1 для Приватный, 2 для Пароль. По умолчанию: 0.
password
privacy имеет значение 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 для Continents, countries для Countries, operating_systems для Operating systems, browsers для Browsers, languages для Languages, devices для Devices, rotations для Rotations.
targets[index][key]
Для поля targets_type=country значение должно быть в формате ISO 3166-1 alpha-2.
Для поля targets_type=operating_systems допустимые значения: iOS, Android, Windows, OS X, Linux, Ubuntu, Chrome OS.
Для поля 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.
Для поля targets_type=devices допустимые значения: Desktop, Mobile, Tablet, Watch, Television.
Для поля targets_type=languages значение должно быть в формате ISO 639-1 alpha-2.
Для поля targets_type=continents допустимые значения: AF для Africa, AN для Antarctica, AS для Asia, EU для Europe, NA для North America, OC для Oceania, SA для South America.
targets[index][value]
API эндпоинт
https://clck.plus/api/v1/links/{id}
Пример запроса
curl --location --request PUT 'https://clck.plus/api/v1/links/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
Параметры
url
alias
space_id
pixel_ids[]
redirect_password
sensitive_content
0 для Нет, 1 для Да.
privacy
0 для Публичный, 1 для Приватный, 2 для Пароль.
password
privacy имеет значение 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 для Continents, countries для Countries, operating_systems для Operating systems, browsers для Browsers, languages для Languages, devices для Devices, rotations для Rotations.
targets[index][key]
Для поля targets_type=country значение должно быть в формате ISO 3166-1 alpha-2.
Для поля targets_type=operating_systems допустимые значения: iOS, Android, Windows, OS X, Linux, Ubuntu, Chrome OS.
Для поля 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.
Для поля targets_type=devices допустимые значения: Desktop, Mobile, Tablet, Watch, Television.
Для поля targets_type=languages значение должно быть в формате ISO 639-1 alpha-2.
Для поля targets_type=continents допустимые значения: AF для Africa, AN для Antarctica, AS для Asia, EU для Europe, NA для North America, OC для Oceania, SA для South America.
targets[index][value]
API эндпоинт
https://clck.plus/api/v1/links/{id}
Пример запроса
curl --location --request DELETE 'https://clck.plus/api/v1/links/{id}' \ --header 'Authorization: Bearer {api_key}'