API 接口:
https://4kz.cn/api/v1/spaces
请求示例:
curl --location --request GET 'https://4kz.cn/api/v1/spaces' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
sort
desc
for Descending, asc
for Ascending.API 接口:
https://4kz.cn/api/v1/spaces/{id}
请求示例:
curl --location --request GET 'https://4kz.cn/api/v1/spaces/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API 接口:
https://4kz.cn/api/v1/spaces
请求示例:
curl --location --request POST 'https://4kz.cn/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
.API 接口:
https://4kz.cn/api/v1/spaces/{id}
请求示例:
curl --location --request PUT 'https://4kz.cn/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://4kz.cn/api/v1/spaces/{id}
请求示例:
curl --location --request DELETE 'https://4kz.cn/api/v1/spaces/{id}' \ --header 'Authorization: Bearer {api_key}'