API接口:
https://sd.la/api/v1/links
请求示例:
curl --location --request GET 'https://sd.la/api/v1/links' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
by
title
for 站点名称, alias
for 自定义后缀, url
for 链接. Defaults to: title
.status
0
for 全部, 1
for 活跃的, 2
for 到期, 3
for 禁用. Defaults to: 0
.space
domain
sort
desc
for 降序, asc
for 升序, max
for 最佳, min
for 最差. Defaults to: desc
.per_page
10
to 100
. Defaults to: 100
.API接口:
https://sd.la/api/v1/links/{id}
请求示例:
curl --location --request GET 'https://sd.la/api/v1/links/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API接口:
https://sd.la/api/v1/links
请求示例:
curl --location --request POST 'https://sd.la/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
for 活跃的, 1
for 禁用. Defaults to: 0
.privacy
0
for 开放的, 1
for 私人的, 2
for 密码. Defaults to: 0
.privacy_password
privacy
set to 2
.expiration_url
expiration_date
expiration_time
expiration_clicks
target_type
0
for 无, 1
for 地理位置, 2
for 平台, 4
for 多链接随机跳转.country[index][key]
country[index][value]
platform[index][key]
iOS
, Android
, Windows
, OS X
, Linux
, Ubuntu
, Chrome OS
.platform[index][value]
language[index][key]
language[index][value]
rotation[index][value]
API接口:
https://sd.la/api/v1/links/{id}
请求示例:
curl --location --request PUT 'https://sd.la/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
for 活跃的, 1
for 禁用.privacy
0
for 开放的, 1
for 私人的, 2
for 密码.privacy_password
privacy
set to 2
.expiration_url
expiration_date
expiration_time
expiration_clicks
target_type
0
for 无, 1
for 地理位置, 2
for 平台, 4
for 多链接随机跳转.country[index][key]
country[index][value]
platform[index][key]
iOS
, Android
, Windows
, OS X
, Linux
, Ubuntu
, Chrome OS
.platform[index][value]
language[index][key]
language[index][value]
rotation[index][value]
API接口:
https://sd.la/api/v1/links/{id}
请求示例:
curl --location --request DELETE 'https://sd.la/api/v1/links/{id}' \ --header 'Authorization: Bearer {api_key}'