列出所有链接
API 接口:
https://xyzurl.cn/api/v1/links
请求示例:
curl --location --request GET 'https://xyzurl.cn/api/v1/links' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
获取链接的详细信息
API 接口:
https://xyzurl.cn/api/v1/links/{id}
请求示例:
curl --location --request GET 'https://xyzurl.cn/api/v1/links/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
创建链接
API 接口:
https://xyzurl.cn/api/v1/links
请求示例:
curl --location --request POST 'https://xyzurl.cn/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
disabled
public
expiration_url
expiration_date
expiration_time
expiration_clicks
target_type
0
for 无, 1
for 地理位置, 2
for 平台, 3
for 多链接随机跳转.geo[index][key]
geo[index][value]
platform[index][key]
platform[index][value]
rotation[index][value]
更新链接
API 接口:
https://xyzurl.cn/api/v1/links/{id}
请求示例:
curl --location --request PUT 'https://xyzurl.cn/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
disabled
public
expiration_url
expiration_date
expiration_time
expiration_clicks
target_type
0
for 无, 1
for 地理位置, 2
for 平台, 3
for 多链接随机跳转.geo[index][key]
geo[index][value]
platform[index][key]
platform[index][value]
rotation[index][value]
删除链接
API 接口:
https://xyzurl.cn/api/v1/links/{id}
请求示例:
curl --location --request DELETE 'https://xyzurl.cn/api/v1/links/{id}' \ --header 'Authorization: Bearer {api_key}'