查询待办分类
查询待办分类
请求说明
| 请求地址 | https://openapi.wps.cn/v7/todo/categories |
|---|---|
| 请求方法 | GET |
| 签名方式 | KSO-1 |
| 权限要求 | 查询和管理待办任务(应用授权) kso.task.readwrite查询待办任务(应用授权) kso.task.read |
请求头(Header)
| Header 名称 | 参数类型 | 是否必填 | 说明 |
|---|---|---|---|
| Content-Type | string | 是 | 使用:application/json |
| X-Kso-Date | string | 是 | RFC1123 格式的日期,例: Wed, 23 Jan 2013 06:43:08 GMT |
| X-Kso-Authorization | string | 是 | KSO-1 签名值,详见《签名方法》 |
| Authorization | string | 是 | 授权凭证,格式为:Bearer {access_token} |
请求地址示例
[GET] https://openapi.wps.cn/v7/todo/categories响应体
| 名称 | 参数类型 | 说明 |
|---|---|---|
| code | integer | 响应代码。非 0 表示失败,参照《状态码说明》 |
| msg | string | 响应信息 |
| data | object | 响应数据 |
| ∟ items | array[object] | 待办分类列表 |
| ∟ ∟ children | array[object] | 子分类,与 items 字段的结构一致(递归) |
| ∟ ∟ id | string | 分类 id |
| ∟ ∟ name | string | 待办分类名称 |
| ∟ ∟ parent_id | string | 上级分类 id |
| ∟ ∟ sort_priority | string | 分类优先级 |
| ∟ total | integer | 数据总数 |
| more | object | 更多的错误信息 |
响应体示例
json
{
"code": 0,
"data": {
"items": [
{
// 递归结构,与 items 结构相同
"children": [
{
"children": [],
"id": "string",
"name": "string",
"parent_id": "string",
"sort_priority": "string"
}
],
"id": "string",
"name": "string",
"parent_id": "string",
"sort_priority": "string"
}
],
"total": 0
},
"msg": "string"
}