API接口:
https://8xhd.cc/api/v1/links
请求示例:
curl --location --request GET 'https://8xhd.cc/api/v1/links' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
by
title
, 自定义短链 alias
, 链接 url
默认为:title
.status
0
, 激活 1
, 到期 2
, 禁用 3
默认为:0
.space
domain
pixel
sort
desc
, 升序 asc
, 访问最多 max
, 访问最少 min
默认为:desc
.per_page
10
发送到 100
默认为:10
.API接口:
https://8xhd.cc/api/v1/links/{id}
请求示例:
curl --location --request GET 'https://8xhd.cc/api/v1/links/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API接口:
https://8xhd.cc/api/v1/links
请求示例:
curl --location --request POST 'https://8xhd.cc/api/v1/links' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
url
alias
password
space
domain
pixels
disabled
0
, 禁用 1
默认为:0
.privacy
0
, 仅自己可查看 1
, 访问密码 2
默认为:0
.privacy_password
privacy
设置为 2
expiration_url
expiration_date
YYYY-MM-DD
expiration_time
HH:MM
expiration_clicks
target_type
0
, 位置 1
, 系统 2
, 跳转 4
country[index][value]
platform[index][key]
iOS
, Android
, Windows
, OS X
, Linux
, Ubuntu
, Chrome OS
platform[index][value]
language[index][value]
rotation[index][value]
API接口:
https://8xhd.cc/api/v1/links/{id}
请求示例:
curl --location --request PUT 'https://8xhd.cc/api/v1/links/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
url
alias
password
space
domain
pixels
disabled
0
, 禁用 1
privacy
0
, 仅自己可查看 1
, 访问密码 2
privacy_password
privacy
设置为 2
expiration_url
expiration_date
YYYY-MM-DD
expiration_time
HH:MM
expiration_clicks
target_type
0
, 位置 1
, 系统 2
, 跳转 4
country[index][value]
platform[index][key]
iOS
, Android
, Windows
, OS X
, Linux
, Ubuntu
, Chrome OS
platform[index][value]
language[index][value]
rotation[index][value]
API接口:
https://8xhd.cc/links/{id}/destroy
请求示例:
curl --location --request DELETE 'https://8xhd.cc/links/{id}/destroy' \ --header 'Authorization: Bearer {api_key}'