智能客服
你问我答,随时在线为你解决问题

























此版本文档已归档不再维护,推荐您使用最新版本。
获取评论数据
GET
https://drive.cloud.hicloud.com/drive/v1/files/{fileId}/comments/{commentId}
*仅对必填项做特别说明。
| fileId | string | 必填,文件ID。 | |
| fileId | string | path | 必填,文件ID。 |
| commentId | string | path | 必填,评论ID。 |
| fields | string | query | 必填,采用[Partial-response格式]。 |
| includeDeleted | boolean | query | 是否包含删除。 |
| form | string | query | 媒体格式。 |
| prettyPrint | boolean | query | 是否以美观格式输出。 |
| quotaId | string | query | 用户标识,小于40个字符。用于限制单个用户的API访问数量。 |
| callback | string | query | JSONP的callback函数。 |
| x-hw-trace-id | string | header | 业务跟踪id。 |
| x-hw-app-id | string | header | 应用的appid。 |
| version | string | header | sdk版本。 |
| x-hw-terminal | string | header | 终端型号。 |
| x-hw-os | string | header | 终端操作系统类型。 |
| unionID | string | header | 开放的用户id。 |
| User-Agent | string | header | 应用版本号/appid。 |
请求体为空。
如果成功,此方法将返回具有以下结构的响应正文:
- {
- "category": "drive#comment",
- "id": "string",
- "createdTime": "2020-02-19T14:44:40.660Z",
- "editedTime": "2020-02-19T14:44:40.661Z",
- "creator": {
- "category": "drive#user",
- "displayName": "string",
- "profilePhotoLink": "string",
- "me": true,
- "permissionId": "string",
- "userAccount": "string"
- },
- "description": "string",
- "htmlDescription": "string",
- "deleted": true,
- "resolved": true,
- "quotedContent": {
- "mimeType": "string",
- "content": "string"
- },
- "position": "string",
- "replies": [
- {
- "category": "drive#reply",
- "id": "string",
- "createdTime": "2020-02-19T14:44:40.661Z",
- "editedTime": "2020-02-19T14:44:40.661Z",
- "creator": {
- "category": "drive#user",
- "displayName": "string",
- "profilePhotoLink": "string",
- "me": true,
- "permissionId": "string",
- "userAccount": "string"
- },
- "htmlDescription": "string",
- "description": "string",
- "deleted": true,
- "operate": "string"
- }
- ]
- }
| Parameter Name | type | Description |
| category | string | 类型,固定为drive#comment。 |
| id | string | 评论id。 |
| createdTime | string | 评论创建时间。 |
| editedTime | string | 评论修改时间。 |
| creator.category | string | 类型,固定为drive#user。 |
| creator.displayName | string | 用户显示名。 |
| creator.profilepPhotoLink | string | 用户头像链接(默认不返回)。 |
| creator.me | boolean | 是否是我。 |
| creator.permissionId | string | 权限id。 |
| creator.userAccount | string | 账号名称(默认不返回)。 |
| description | string | 评论描述。 |
| htmlDescription | string | HTML评论描述。 |
| deleted | boolean | 是否已删除。 |
| resolved | boolean | 是否已解决。 |
| quotedContent.mimeType | string | 内容类型。 |
| quotedContent.content | string | 引用的内容。 |
| position | string | 位置。 |
| replies[] | list | 回复列表。 |
| replies.category | string | 类型,固定为drive#reply。 |
| replies.id | string | 回复id。 |
| replies.createdTime | string | 回复创建时间。 |
| replies.editedTime | string | 回复修改时间。 |
| replies.creator.category | string | 类型,固定为drive#user。 |
| replies.creator.displayName | string | 用户显示名。 |
| replies.creator.profilePhotoLink | string | 用户头像链接(默认不返回)。 |
| replies.creator.me | boolean | 是否是我。 |
| replies.creator.permissionId | string | 权限id。 |
| replies.creator.userAccount | string | 账号名称(默认不返回)。 |
| replies.htmlDescription | string | html内容。 |
| replies.description | string | 内容。 |
| replies.deleted | boolean | 是否已删除。 |
| replies.operate | string | 操作。 |
智能客服
你问我答,随时在线为你解决问题
合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
解决方案
精准高效的一站式服务支持,助力开发者商业成功