获取评论
GET
https://open.feishu.cn/open-apis/approval/v4/instances/{instance_id}/comments
错误码
HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
400 | 1390001 | param is invalid | 参数错误 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://open.feishu.cn/open-apis/approval/v4/instances/6A123516-FB88-470D-A428-9AF58B71B3C0/comments?user_id_type=open_id&user_id=e5286g26&page_token=nF1ZXJ5VGhlbkZldGNoCgAAAAAA6PZwFmUzSldvTC1yU&page_size=10' \
--header 'Authorization;'
响应示例响应示例
{
"code": 0,
"msg": "success",
"data": {
"comments": [
{
"id": "7081516627711524883",
"content": "{\"text\":\"x@王某自小程序的评论111我带了附件,而且我艾特了人 \",\"files\":[{\"url\":\"https://xx-xxx-xxx.bytedance.net/lark-approval-attachment/image/20220401/1/d43216ca-93b5-43a8-8a34-23c66820463a.png~tplv-k7bg0smxju-image.image?x-orig-authkey=boeorigin\&x-orig-expires=1650963890\&x-orig-sign=668QhQbRSt6638x2Ws8wFI%2FxqVg%3D#.png\",\"fileSize\":155149,\"title\":\"9a9fedc5cfb01a4a20c715098.png\",\"type\":\"image\"}]}",
"create_time": "1648801211000",
"update_time": "1648801211000",
"is_delete": 1,
"replies": [
{
"id": "7081516611634741268",
"content": "{\"text\":\"x@张某来自小程序的评论111,这是一条回复\",\"files\":[{\"url\":\"https://xx-xxx-xxx.bytedance.net/lark-approval-attachment/image/20220401/1/d43216ca-93b5-43a8-8a34-23c66820463a.png~tplv-k7bg0smxju-image.image?x-orig-authkey=boeorigin\&x-orig-expires=1650963890\&x-orig-sign=668QhQbRSt6638x2Ws8wFI%2FxqVg%3D#.png\",\"fileSize\":155149,\"title\":\"9a9fedc5cfb01a4a20c715098.png\",\"type\":\"image\"}]}",
"create_time": "1648803677000",
"update_time": "1648803677000",
"is_delete": 0,
"at_info_list": [
{
"user_id": "579fd9c4",
"name": "张某",
"offset": "1"
}
],
"commentator": "893g4c45",
"extra": "{\"a\":\"a\"}"
}
],
"at_info_list": [
{
"user_id": "579fd9c4",
"name": "张某",
"offset": "1"
}
],
"commentator": "893g4c45",
"extra": "{\"a\":\"a\"}"
}
]
}
}
请求参数
Path 参数
instance_id
string
必需
示例值:
6A123516-FB88-470D-A428-9AF58B71B3C0
Query 参数
user_id_type
string
可选
示例值:
open_id
user_id
string
用户ID
示例值:
e5286g26
page_token
string
可选
示例值:
nF1ZXJ5VGhlbkZldGNoCgAAAAAA6PZwFmUzSldvTC1yU
page_size
string
分页大小
示例值:
10
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8
返回响应
修改于 2023-02-02 03:17:48