Get comment by ID

GET {{baseUrl}}/files/:fileId/comments/:commentId?key={{key}}&oauth_token={{oauthToken}}

Gets a comment by ID.

Request Params

KeyDatatypeRequiredDescription
includeDeletedstringWhether to return deleted comments. Deleted comments will not include their original content.
altstringData format for the response.
fieldsstringSelector specifying which fields to include in a partial response.
keystringAPI key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_tokenstringOAuth 2.0 token for the current user.
prettyPrintstringReturns response with indentations and line breaks.
quotaUserstringAn opaque string that represents a user for quota purposes. Must not exceed 40 characters.
userIpstringDeprecated. Please use quotaUser instead.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"anchor":"\u003cstring\u003e","author":{"displayName":"\u003cstring\u003e","emailAddress":"\u003cstring\u003e","kind":"drive#user","me":"\u003cboolean\u003e","permissionId":"\u003cstring\u003e","photoLink":"\u003cstring\u003e"},"content":"\u003cstring\u003e","createdTime":"\u003cdateTime\u003e","deleted":"\u003cboolean\u003e","htmlContent":"\u003cstring\u003e","id":"\u003cstring\u003e","kind":"drive#comment","modifiedTime":"\u003cdateTime\u003e","quotedFileContent":{"mimeType":"\u003cstring\u003e","value":"\u003cstring\u003e"},"replies":[{"action":"\u003cstring\u003e","author":{"displayName":"\u003cstring\u003e","emailAddress":"\u003cstring\u003e","kind":"drive#user","me":"\u003cboolean\u003e","permissionId":"\u003cstring\u003e","photoLink":"\u003cstring\u003e"},"content":"\u003cstring\u003e","createdTime":"\u003cdateTime\u003e","deleted":"\u003cboolean\u003e","htmlContent":"\u003cstring\u003e","id":"\u003cstring\u003e","kind":"drive#reply","modifiedTime":"\u003cdateTime\u003e"},{"action":"\u003cstring\u003e","author":{"displayName":"\u003cstring\u003e","emailAddress":"\u003cstring\u003e","kind":"drive#user","me":"\u003cboolean\u003e","permissionId":"\u003cstring\u003e","photoLink":"\u003cstring\u003e"},"content":"\u003cstring\u003e","createdTime":"\u003cdateTime\u003e","deleted":"\u003cboolean\u003e","htmlContent":"\u003cstring\u003e","id":"\u003cstring\u003e","kind":"drive#reply","modifiedTime":"\u003cdateTime\u003e"}],"resolved":"\u003cboolean\u003e"}