API endpoint:
https://goo.cm/api/v1/links
请求示例:
curl --location --request GET 'https://goo.cm/api/v1/links' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
by
title
for 标题, alias
for 自定义后缀, url
for URL. 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: 10
.API endpoint:
https://goo.cm/api/v1/links/{id}
请求示例:
curl --location --request GET 'https://goo.cm/api/v1/links/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API endpoint:
https://goo.cm/api/v1/links
请求示例:
curl --location --request POST 'https://goo.cm/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
YYYY-MM-DD
format.expiration_time
HH:MM
format.expiration_clicks
target_type
0
for 默认, 1
for Geographic, 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 endpoint:
https://goo.cm/api/v1/links/{id}
请求示例:
curl --location --request PUT 'https://goo.cm/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
YYYY-MM-DD
format.expiration_time
HH:MM
format.expiration_clicks
target_type
0
for 默认, 1
for Geographic, 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 endpoint:
https://goo.cm/api/v1/links/{id}
请求示例:
curl --location --request DELETE 'https://goo.cm/api/v1/links/{id}' \ --header 'Authorization: Bearer {api_key}'