获取评论列表
GET
https://open.feishu.cn/open-apis/task/v1/tasks/{task_id}/comments
错误码
HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
403 | 1470403 | The identity token is incorrect. It should be either user_access_token or tenant_access_token. | 发起请求方的身份token不正确,需要为UserAccessToken或TenantAccessToken其中一种 |
500 | 1470734 | failed to get comment | 一般是获取评论时系统内部逻辑处理出现问题,可根据具体错误进行分析,无法解决时请找相关服务的同学处理 |
400 | 1470432 | No permission to get the task. | 没有获取任务的权限,需要检查当前发起请求的对象是否有权限 |
400 | 1470421 | page_size exceed 100 | 分页大小超过最大值100,需要减小page_size的值 |
400 | 1470422 | failed to parse page_token | 解析分页标识失败,需要检查分页标识是否合法 |
400 | 1470602 | Invalid task id. | 请检查任务的 id 是否合法 |
404 | 1470733 | comment not found | 一般是回复评论时传的parent_id有问题 |
400 | 1470432 | No permission to get the task. | 没有获取任务的权限,需要检查当前发起请求的对象是否有权限 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://open.feishu.cn/open-apis/task/v1/tasks/83912691-2e43-47fc-94a4-d512e03984fa/comments?page_size=&page_token=&list_direction=' \
--header 'Authorization;'
响应示例响应示例
{
"code": 0,
"data": {
"has_more": false,
"items": [
{
"content": "评论2",
"id": "7104224757005533212",
"parent_id": "0",
"create_milli_time": "1656483428000"
},
{
"content": "评论1",
"id": "7104224731582169116",
"parent_id": "0",
"create_milli_time": "1656483428000"
}
],
"page_token": "LTE="
},
"msg": ""
}
请求参数
Path 参数
task_id
string
任务id
示例值:
83912691-2e43-47fc-94a4-d512e03984fa
Query 参数
page_size
integer
可选
page_token
string
可选
list_direction
integer
可选
1:按照回复时间从大到小查询
默认值:0
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8
返回响应
修改于 2023-02-02 08:11:08