查询待办任务
用于通过开发者接口查询待办任务。
请求说明
| 请求地址 | 配置域名+/o/woa + /api/v1/task_center/developer/tasks/ |
|---|---|
| 请求方法 | GET |
| 签名方式 | wps-4 |
| 支持应用类型 | 企业自建应用、第三方企业应用 |
| 权限要求 | 查询待办信息(kso.task.read) |
请求头
| 名称 | 是否必填 | 说明 |
|---|---|---|
| Content-Type | 是 | 固定为: application/json |
| Wps-Docs-Date | 是 | 取当前时间, 示例: Wed, 23 Jan 2013 06:43:08 GMT |
| Wps-Docs-Authorization | 是 | 计算方法参考签名说明 |
| Authorization | 是 | access_token(企业授权获取的token) |
路径参数(Path)
| 名称 | 参数类型 | 是否必填 | 说明 |
|---|---|---|---|
| taskid | integer | 是 | 待办ID |
响应体(Response)
| 名称 | 参数类型 | 说明 |
|---|---|---|
| taskid | string | 待办ID |
| prefix | string | 前缀 |
| subject | string | 标题 |
| description | string | 描述 |
| category | integer | 分类ID |
| due_time | integer | 截止时间(毫秒) |
| finish_time | integer | 完成时间(毫秒) |
| display_time | integer | 展示时间(毫秒) |
| link | object | 跳转链接 |
| ∟ pc_url | string | PC跳转链接 |
| ∟ app_url | string | APP跳转链接 |
| status | integer | 状态1:未完成2:已完成 |
| read | integer | 已读状态1:未读2:已读 |
| tags | []string | 标签KEY |
| priority | integer | 优先级 |
| notify_config | object | 通知设置 |
| ∟ switch | bool | 通知开关 |
| ∟ reminders | []object | 提醒设置 |
| ∟ ∟before_due_time | integer | 截止前N分钟提醒 |
| extra | string | 附加信息 |
响应体示例
{
"taskid": "10051",
"prefix": "【前缀】",
"subject": "待办",
"description": "描述",
"category": 2,
"start_time": 0,
"due_time": 1694742300000,
"finish_time": 0,
"display_time": 0,
"status": 1,
"link": {
"pc_url": "https://www.baidu.com",
"app_url": "https://www.baidu.com"
},
"tags": [
"OPJKm514K9bL"
],
"created_time": 1694742060258,
"modified_time": 1694742060258,
"executor": 1,
"creator": 100000010016,
"priority": 1,
"notify_config": {
"switch": true,
"reminders": [
{
"before_due_time": 1
}
]
},
"extra": ""
}