获取评论列表
GET {{base_url}}/drive/v1/files/:file_token/comments?file_type=sheet
通过分页方式获取云文档中的全文评论列表。
参考接口文档:获取评论列表
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
user_id_type | string | 用户 ID 类型。可选值:open_id、union_id、user_id | |
is_solved | boolean | 是否已解决(可选) | |
page_token | number | 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果 | |
page_size | number | 分页大小 | |
file_type | string |
RESPONSES
status: OK
{"code":0,"data":{"has_more":false,"items":[{"comment_id":"7044838991102853123","create_time":1640254396,"is_solved":false,"reply_list":{"replies":[{"content":{"elements":[{"docs_link":null,"person":null,"text_run":{"text":"comment text"},"type":"text_run"}]},"create_time":1640254396,"reply_id":"7044838991111225347","update_time":1640254396,"user_id":"ou_2483d41943e774c2b902f7e2b1abe843"}]},"solver_user_id":null,"update_time":1640254396,"user_id":"ou_2483d41943e774c2b902f7e2b1abe843"},{"comment_id":"7044839079992901635","create_time":1640254417,"is_solved":false,"reply_list":{"replies":[{"content":{"elements":[{"docs_link":null,"person":null,"text_run":{"text":"comment text"},"type":"text_run"}]},"create_time":1640254417,"reply_id":"7044839080001175556","update_time":1640254417,"user_id":"ou_2483d41943e774c2b902f7e2b1abe843"}]},"solver_user_id":null,"update_time":1640254417,"user_id":"ou_2483d41943e774c2b902f7e2b1abe843"}],"page_token":"7044839079992901635"},"msg":"Success"}