标签

说明
专家级
API 密钥应作为请求的授权标头中的不记名令牌发送. 获取您的 API 密钥.
列表

API endpoint:

GET
http://goo.gs/api/v1/spaces

请求示例:

curl --location --request GET 'http://goo.gs/api/v1/spaces' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameter
类型
描述
search
optional string
The search query.
sort
optional string
排序. Possible values are: desc for 降序, asc for 升序. Defaults to: desc.
per_page
optional int
每页结果. Possible values are: 10 to 100. Defaults to: 10.
Show

API endpoint:

GET
http://goo.gs/api/v1/spaces/{id}

请求示例:

curl --location --request GET 'http://goo.gs/api/v1/spaces/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Store

API endpoint:

POST
http://goo.gs/api/v1/spaces

请求示例:

curl --location --request POST 'http://goo.gs/api/v1/spaces' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'url={url}'
Parameter
类型
描述
name
required string
The space name.
color
optional integer
The color code. Possible values are: 1, 2, 3, 4, 5, 6. Defaults to: 1.
Update

API endpoint:

PUT PATCH
http://goo.gs/api/v1/spaces/{id}

请求示例:

curl --location --request PUT 'http://goo.gs/api/v1/spaces/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'url={url}'
Parameter
类型
描述
name
optional string
The space name.
color
optional integer
The color code. Possible values are: 1, 2, 3, 4, 5, 6.
删除

API endpoint:

DELETE
http://goo.gs/api/v1/spaces/{id}

请求示例:

curl --location --request DELETE 'http://goo.gs/api/v1/spaces/{id}' \
--header 'Authorization: Bearer {api_key}'