API:
https://abab.cab/api/v1/links
请求示例:
curl --location --request GET 'https://abab.cab/api/v1/links' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
search_by
title
for 标题, alias
for 后缀, url
for URL. 默认为: title
.status
0
for 所有, 1
for 活动, 2
for 过期, 3
for 禁用. 默认为: 0
.space
domain
pixel
sort_by
id
for Date created, clicks
for 点击, title
for 标题, alias
for 后缀, url
for URL. 默认为: id
.sort
desc
for 下降, asc
for 上升. 默认为: desc
.per_page
10
, 25
, 50
, 100
. 默认为: 10
.API:
https://abab.cab/api/v1/links/{id}
请求示例:
curl --location --request GET 'https://abab.cab/api/v1/links/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API:
https://abab.cab/api/v1/links
请求示例:
curl --location --request POST 'https://abab.cab/api/v1/links' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}' \ --data-urlencode 'domain={id}'
url
domain
alias
password
space
pixels
disabled
0
for 活动, 1
for 禁用. 默认为: 0
.privacy
0
for 公开, 1
for 私密, 2
for 密码. 默认为: 0
.privacy_password
privacy
set to 2
.expiration_url
expiration_date
YYYY-MM-DD
format.expiration_time
HH:MM
format.expiration_clicks
target_type
0
for 无, 1
for 地理位置, 2
for 平台, 4
for 旋转交替?.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://abab.cab/api/v1/links/{id}
请求示例:
curl --location --request PUT 'https://abab.cab/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
pixels
disabled
0
for 活动, 1
for 禁用.privacy
0
for 公开, 1
for 私密, 2
for 密码.privacy_password
privacy
set to 2
.expiration_url
expiration_date
YYYY-MM-DD
format.expiration_time
HH:MM
format.expiration_clicks
target_type
0
for 无, 1
for 地理位置, 2
for 平台, 4
for 旋转交替?.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://abab.cab/api/v1/links/{id}
请求示例:
curl --location --request DELETE 'https://abab.cab/api/v1/links/{id}' \ --header 'Authorization: Bearer {api_key}'