目录

列举评论列表

请求

HTTP请求

GET
https://drive.cloud.hicloud.com/drive/v1/files/{fileId}/comments

参数

*仅对必填项做特别说明。

fileIdstring
必填,文件ID。
fileIdstringpath必填,文件ID。
pageSizeintegerquery每个返回的格式,默认是100,可接受值最大值是100。注意在到达最后的列表之前,实际有可能返回部分或者空结果。
cursorstringquery当前页游标,由前一个响应的nextCursor获取。
startEditedTimestringquery起始变更时间。
fieldsstringquery必填,采用[Partial-response格式]。
includeDeletedbooleanquery是否包含删除。
formstringquery媒体格式。
prettyPrintbooleanquery是否以美观格式输出。
quotaIdstringquery用户标识,小于40个字符。用于限制单个用户的API访问数量。
callbackstringqueryJSONP的callback函数。
x-hw-trace-idstringheader业务跟踪id。
x-hw-app-idstringheader应用的appid。
versionstringheadersdk版本。
x-hw-terminalstringheader终端型号。
x-hw-osstringheader终端操作系统类型。
unionIDstringheader开放的用户id。
User-Agentstringheader应用版本号/appid。

请求体

请求体为空。

响应

如果成功,此方法将返回具有以下结构的响应正文:

  1. {
  2.            "category": "drive#commentList",
  3.            "nextCursor": "string",
  4.            "comments": [
  5.            {
  6.                "category": "drive#comment",
  7.                "id": "string",
  8.                "createdTime": "2020-02-19T14:44:40.660Z",
  9.                "editedTime": "2020-02-19T14:44:40.661Z",
  10.                "creator": {
  11.                    "category": "drive#user",
  12.                    "displayName": "string",
  13.                    "profilePhotoLink": "string",
  14.                    "me": true,
  15.                    "permissionId": "string",
  16.                    "userAccount": "string"
  17.                },
  18.                "description": "string",
  19.                "htmlDescription": "string",
  20.                "deleted": true,
  21.                "resolved": true,
  22.                "quotedContent": {
  23.                    "mimeType": "string",
  24.                    "content": "string"
  25.                },
  26.                "position": "string",
  27.                "replies": [
  28.                {
  29.                    "category": "drive#reply",
  30.                    "id": "string",
  31.                    "createdTime": "2020-02-19T14:44:40.661Z",
  32.                    "editedTime": "2020-02-19T14:44:40.661Z",
  33.                    "creator": {
  34.                        "category": "drive#user",
  35.                        "displayName": "string",
  36.                        "profilePhotoLink": "string",
  37.                        "me": true,
  38.                        "permissionId": "string",
  39.                        "userAccount": "string"
  40.                    },
  41.                    "htmlDescription": "string",
  42.                    "description": "string",
  43.                    "deleted": true,
  44.                    "operate": "string"
  45.                }
  46.                ]
  47.            }
  48.            ]
  49. }



categorystring类型,固定为drive#commentList。
nextCursorstring下一页游标,为空表示最后一页。
comments[]
list评论列表。
comments.categorystring类型,固定为drive#comment。
comments.idstring评论id。
comments.createdTimestring评论创建时间。
comments.editedTimestring评论修改时间。
comments.creator.category
string类型,固定为drive#user。
comments.creator.displayNamestring用户显示名。
comments.creator.profilepPhotoLinkstring用户头像链接(默认不返回)。
comments.creator.meboolean是否是我。
comments.creator.permissionIdstring权限id。
comments.creator.userAccountstring账号名称(默认不返回)。
comments.descriptionstring评论描述。
comments.htmlDescriptionstringHTML评论描述。
comments.deletedboolean是否已删除。
comments.resolvedboolean是否已解决。
comments.quotedContent.mimeTypestring内容类型。
comments.quotedContent.contentstring引用的内容。
comments.positionstring位置。
comments.replies[]list回复列表。
comments.replies.categorystring类型,固定为drive#reply。
comments.replies.id
string回复id。
comments.replies.createdTimestring回复创建时间。
comments.replies.editedTimestring回复修改时间。
comments.replies.creator.categorystring类型,固定为drive#user。
comments.replies.creator.displayNamestring用户显示名。
comments.replies.creator.profilePhotoLinkstring用户头像链接(默认不返回)。
comments.replies.creator.meboolean是否是我。
comments.replies.creator.permissionIdstring权限id。
comments.replies.userAccountstring账号名称(默认不返回)。
comments.replies.htmlDescriptionstringhtml内容。
comments.replies.description
string内容。
comments.replies.deletedboolean是否已删除。
comments.replies.operatestring操作。