API接口:
https://8xhd.cc/api/v1/spaces
请求示例:
curl --location --request GET 'https://8xhd.cc/api/v1/spaces' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
sort
desc
, 升序 asc
默认为:desc
.per_page
10
发送到 100
默认为:10
.API接口:
https://8xhd.cc/api/v1/spaces/{id}
请求示例:
curl --location --request GET 'https://8xhd.cc/api/v1/spaces/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API接口:
https://8xhd.cc/api/v1/spaces
请求示例:
curl --location --request POST 'https://8xhd.cc/api/v1/spaces' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
name
color
1
, 2
, 3
, 4
, 5
, 6
默认为:1
.API接口:
https://8xhd.cc/api/v1/spaces/{id}
请求示例:
curl --location --request PUT 'https://8xhd.cc/api/v1/spaces/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
name
color
1
, 2
, 3
, 4
, 5
, 6
API接口:
https://8xhd.cc/spaces/{id}/destroy
请求示例:
curl --location --request DELETE 'https://8xhd.cc/spaces/{id}/destroy' \ --header 'Authorization: Bearer {api_key}'