API接口:
https://sd.la/api/v1/spaces
请求示例:
curl --location --request GET 'https://sd.la/api/v1/spaces' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
sort
desc
for 降序, asc
for 升序. Defaults to: desc
.per_page
10
to 100
. Defaults to: 100
.API接口:
https://sd.la/api/v1/spaces/{id}
请求示例:
curl --location --request GET 'https://sd.la/api/v1/spaces/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API接口:
https://sd.la/api/v1/spaces
请求示例:
curl --location --request POST 'https://sd.la/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
. Defaults to: 1
.API接口:
https://sd.la/api/v1/spaces/{id}
请求示例:
curl --location --request PUT 'https://sd.la/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://sd.la/api/v1/spaces/{id}
请求示例:
curl --location --request DELETE 'https://sd.la/api/v1/spaces/{id}' \ --header 'Authorization: Bearer {api_key}'