API端点:
https://kfurl.cn/api/v1/spaces
请求示例:
curl --location --request GET 'https://kfurl.cn/api/v1/spaces' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
search_by
name
为 名称. 默认为: name
.sort_by
id
为 创建时间, name
为 名称. 默认为: id
.sort
desc
为 降序, asc
为 升序. 默认为: desc
.per_page
10
, 25
, 50
, 100
. 默认为: 10
.API端点:
https://kfurl.cn/api/v1/spaces/{id}
请求示例:
curl --location --request GET 'https://kfurl.cn/api/v1/spaces/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API端点:
https://kfurl.cn/api/v1/spaces
请求示例:
curl --location --request POST 'https://kfurl.cn/api/v1/spaces' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'name={name}'
name
color
1
, 2
, 3
, 4
, 5
, 6
. 默认为: 1
.API端点:
https://kfurl.cn/api/v1/spaces/{id}
请求示例:
curl --location --request PUT 'https://kfurl.cn/api/v1/spaces/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
name
color
1
, 2
, 3
, 4
, 5
, 6
.API端点:
https://kfurl.cn/api/v1/spaces/{id}
请求示例:
curl --location --request DELETE 'https://kfurl.cn/api/v1/spaces/{id}' \ --header 'Authorization: Bearer {api_key}'