Method: replies.list

列出对评论的所有回复。

HTTP 请求

GET https://www.googleapis.com/drive/v2/files/{fileId}/comments/{commentId}/replies

网址采用 gRPC 转码语法。

路径参数

参数
fileId

string

文件的 ID。

commentId

string

评论的 ID。

查询参数

参数
includeDeleted

boolean

如果设置了此值,则系统会返回所有回复,包括已删除的回复(内容已剥离)。

maxResults

integer

响应中包含的回复数量上限,用于分页。

pageToken

string

用于对大型结果集进行分页的接续令牌。如需获取下一页结果,请将此参数设置为上一个响应中的“nextPageToken”值。

请求正文

请求正文必须为空。

响应正文

Google 云端硬盘中文件评论的回复列表。

如果成功,响应正文将包含结构如下的数据:

JSON 表示法
{
  "items": [
    {
      object (CommentReply)
    }
  ],
  "kind": string,
  "selfLink": string,
  "nextLink": string,
  "nextPageToken": string
}
字段
items[]

object (CommentReply)

回复列表。如果 nextPageToken 已填充,则表示此列表可能不完整,应再提取一页结果。

kind

string

始终为 drive#commentReplyList

nextPageToken

string

下一页回复的页面令牌。如果已到达回复列表的末尾,则此字段将不存在。如果令牌因任何原因被拒绝,则应将其舍弃,并从第一页结果重新开始分页。

授权范围

需要以下 OAuth 范围之一:

  • https://www.googleapis.com/auth/docs
  • https://www.googleapis.com/auth/drive
  • https://www.googleapis.com/auth/drive.file
  • https://www.googleapis.com/auth/drive.meet.readonly
  • https://www.googleapis.com/auth/drive.readonly

某些范围受到限制,您的应用需要通过安全评估才能使用这些范围。如需了解详情,请参阅授权指南