API uç noktası
https://link.adv.net.tr/api/v1/links
İstek örneği
curl --location --request GET 'https://link.adv.net.tr/api/v1/links' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameters
search
search_by
title, Takma Ad için alias, URL için url. Varsayılan olarak: title.
status
0, Aktif için 1, Süresi Dolmuş için 2, Devre Dışı için 3. Varsayılan olarak: 0.
space_id
domain_id
pixel_id
sort_by
id, Tıklamalar için clicks, Başlık için title, Takma Ad için alias, URL için url. Varsayılan olarak: id.
sort
desc, Artan için asc. Varsayılan olarak: desc.
per_page
10, 25, 50, 100. Varsayılan olarak: 10.
API uç noktası
https://link.adv.net.tr/api/v1/links/{id}
İstek örneği
curl --location --request GET 'https://link.adv.net.tr/api/v1/links/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API uç noktası
https://link.adv.net.tr/api/v1/links
İstek örneği
curl --location --request POST 'https://link.adv.net.tr/api/v1/links' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}' \ --data-urlencode 'domain={id}'
Parameters
url
domain_id
alias
space_id
pixel_ids[]
redirect_password
sensitive_content
0, Evet için 1. Varsayılan olarak: 0.
privacy
0, Özel için 1, Şifre için 2. Varsayılan olarak: 0.
password
privacy field set to 2.
active_period_start_at
Y-m-dTH:i:s format.
active_period_end_at
Y-m-dTH:i:s format.
clicks_limit
expiration_url
targets_type
continents, Countries için countries, Operating systems için operating_systems, Browsers için browsers, Languages için languages, Devices için devices, Rotations için rotations.
targets[index][key]
For targets_type=country, the value must be in ISO 3166-1 alpha-2 format.
For targets_type=operating_systems, the possible values are: iOS, Android, Windows, OS X, Linux, Ubuntu, Chrome OS.
For targets_type=browsers, the possible values are: 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.
For targets_type=devices, the possible values are: Desktop, Mobile, Tablet, Watch, Television.
For targets_type=languages, the value must be in ISO 639-1 alpha-2 format.
For targets_type=continents, the possible values are: Africa için AF, Antarctica için AN, Asia için AS, Europe için EU, North America için NA, Oceania için OC, South America için SA.
targets[index][value]
API uç noktası
https://link.adv.net.tr/api/v1/links/{id}
İstek örneği
curl --location --request PUT 'https://link.adv.net.tr/api/v1/links/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
Parameters
url
alias
space_id
pixel_ids[]
redirect_password
sensitive_content
0, Evet için 1.
privacy
0, Özel için 1, Şifre için 2.
password
privacy field set to 2.
active_period_start_at
Y-m-dTH:i:s format.
active_period_end_at
Y-m-dTH:i:s format.
clicks_limit
expiration_url
targets_type
continents, Countries için countries, Operating systems için operating_systems, Browsers için browsers, Languages için languages, Devices için devices, Rotations için rotations.
targets[index][key]
For targets_type=country, the value must be in ISO 3166-1 alpha-2 format.
For targets_type=operating_systems, the possible values are: iOS, Android, Windows, OS X, Linux, Ubuntu, Chrome OS.
For targets_type=browsers, the possible values are: 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.
For targets_type=devices, the possible values are: Desktop, Mobile, Tablet, Watch, Television.
For targets_type=languages, the value must be in ISO 639-1 alpha-2 format.
For targets_type=continents, the possible values are: Africa için AF, Antarctica için AN, Asia için AS, Europe için EU, North America için NA, Oceania için OC, South America için SA.
targets[index][value]
API uç noktası
https://link.adv.net.tr/api/v1/links/{id}
İstek örneği
curl --location --request DELETE 'https://link.adv.net.tr/api/v1/links/{id}' \ --header 'Authorization: Bearer {api_key}'