API接口:
https://gomls.cn/api/v1/links
请求示例:
curl --location --request GET 'https://gomls.cn/api/v1/links' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
searchbytitle, 自定义短链 alias, 链接 url 默认为:title.status0, 激活 1, 到期 2, 禁用 3 默认为:0.spacedomainpixelsortdesc, 升序 asc, 访问最多 max, 访问最少 min 默认为:desc.per_page10 发送到 100 默认为:10.API接口:
https://gomls.cn/api/v1/links/{id}
请求示例:
curl --location --request GET 'https://gomls.cn/api/v1/links/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API接口:
https://gomls.cn/api/v1/links
请求示例:
curl --location --request POST 'https://gomls.cn/api/v1/links' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
urlaliaspasswordspacedomainpixelsdisabled0, 禁用 1 默认为:0.privacy0, 仅自己可查看 1, 访问密码 2 默认为:0.privacy_passwordprivacy 设置为 2expiration_urlexpiration_dateYYYY-MM-DDexpiration_timeHH:MMexpiration_clickstarget_type0, 位置 1, 系统 2, 跳转 4country[index][value]platform[index][key]iOS, Android, Windows, OS X, Linux, Ubuntu, Chrome OSplatform[index][value]language[index][value]rotation[index][value]API接口:
https://gomls.cn/api/v1/links/{id}
请求示例:
curl --location --request PUT 'https://gomls.cn/api/v1/links/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
urlaliaspasswordspacedomainpixelsdisabled0, 禁用 1privacy0, 仅自己可查看 1, 访问密码 2privacy_passwordprivacy 设置为 2expiration_urlexpiration_dateYYYY-MM-DDexpiration_timeHH:MMexpiration_clickstarget_type0, 位置 1, 系统 2, 跳转 4country[index][value]platform[index][key]iOS, Android, Windows, OS X, Linux, Ubuntu, Chrome OSplatform[index][value]language[index][value]rotation[index][value]API接口:
https://gomls.cn/links/{id}/destroy
请求示例:
curl --location --request DELETE 'https://gomls.cn/links/{id}/destroy' \ --header 'Authorization: Bearer {api_key}'