API端点
https://tb3.cn/api/v1/links
请求示例
curl --location --request GET 'https://tb3.cn/api/v1/links' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameters
search
search_by
title, 别名 的 alias, 网址 的 url. 默认为: title.
status
0, 启用 的 1, 已到期 的 2, 禁用 的 3. 默认为: 0.
space_id
domain_id
pixel_id
sort_by
id, 点击次数 的 clicks, 标题 的 title, 别名 的 alias, 网址 的 url. 默认为: id.
sort
desc, 上升 的 asc. 默认为: desc.
per_page
10, 25, 50, 100. 默认为: 10.
API端点
https://tb3.cn/api/v1/links/{id}
请求示例
curl --location --request GET 'https://tb3.cn/api/v1/links/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API端点
https://tb3.cn/api/v1/links
请求示例
curl --location --request POST 'https://tb3.cn/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, 是 的 1. 默认为: 0.
privacy
0, 私有 的 1, 密码 的 2. 默认为: 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 的 countries, Operating systems 的 operating_systems, Browsers 的 browsers, Languages 的 languages, Devices 的 devices, Rotations 的 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 的 AF, Antarctica 的 AN, Asia 的 AS, Europe 的 EU, North America 的 NA, Oceania 的 OC, South America 的 SA.
targets[index][value]
API端点
https://tb3.cn/api/v1/links/{id}
请求示例
curl --location --request PUT 'https://tb3.cn/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, 是 的 1.
privacy
0, 私有 的 1, 密码 的 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 的 countries, Operating systems 的 operating_systems, Browsers 的 browsers, Languages 的 languages, Devices 的 devices, Rotations 的 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 的 AF, Antarctica 的 AN, Asia 的 AS, Europe 的 EU, North America 的 NA, Oceania 的 OC, South America 的 SA.
targets[index][value]
API端点
https://tb3.cn/api/v1/links/{id}
请求示例
curl --location --request DELETE 'https://tb3.cn/api/v1/links/{id}' \ --header 'Authorization: Bearer {api_key}'