Get
|
|||||
|
|
Gets a comment by ID
Authorization
To use this building block you will have to grant access to at least one of the following scopes:
- See, edit, create, and delete all of your Google Drive files
- View and manage Google Drive files and folders that you have opened or created with this app
- See and download all your Google Drive files
Input
This building block consumes 3 input parameters
Name | Format | Description |
---|---|---|
fileId Required |
STRING |
The ID of the file |
commentId Required |
STRING |
The ID of the comment |
includeDeleted |
BOOLEAN |
Whether to return deleted comments. Deleted comments will not include their original content |
= Parameter name
= Format
fileId STRING Required The ID of the file |
commentId STRING Required The ID of the comment |
includeDeleted BOOLEAN Whether to return deleted comments. Deleted comments will not include their original content |
Output
This building block provides 35 output parameters
Name | Format | Description |
---|---|---|
anchor |
STRING |
A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties |
author |
OBJECT |
Information about a Drive user |
author.displayName |
STRING |
A plain text displayable name for this user |
author.emailAddress |
STRING |
The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester |
author.kind |
STRING |
Identifies what kind of resource this is. Value: the fixed string "drive#user" |
author.me |
BOOLEAN |
Whether this user is the requesting user |
author.permissionId |
STRING |
The user's ID as visible in Permission resources |
author.photoLink |
STRING |
A link to the user's profile photo, if available |
content |
STRING |
The plain text content of the comment. This field is used for setting the content, while htmlContent should be displayed |
createdTime |
DATE_TIME |
The time at which the comment was created (RFC 3339 date-time) |
deleted |
BOOLEAN |
Whether the comment has been deleted. A deleted comment has no content |
htmlContent |
STRING |
The content of the comment with HTML formatting |
id |
STRING |
The ID of the comment |
kind |
STRING |
Identifies what kind of resource this is. Value: the fixed string "drive#comment" |
modifiedTime |
DATE_TIME |
The last time the comment or any of its replies was modified (RFC 3339 date-time) |
quotedFileContent |
OBJECT |
The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment |
quotedFileContent.mimeType |
STRING |
The MIME type of the quoted content |
quotedFileContent.value |
STRING |
The quoted content itself. This is interpreted as plain text if set through the API |
replies[] |
OBJECT |
A reply to a comment on a file |
replies[].action |
STRING |
The action the reply performed to the parent comment. Valid values are:
|
replies[].author |
OBJECT |
Information about a Drive user |
replies[].author.displayName |
STRING |
A plain text displayable name for this user |
replies[].author.emailAddress |
STRING |
The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester |
replies[].author.kind |
STRING |
Identifies what kind of resource this is. Value: the fixed string "drive#user" |
replies[].author.me |
BOOLEAN |
Whether this user is the requesting user |
replies[].author.permissionId |
STRING |
The user's ID as visible in Permission resources |
replies[].author.photoLink |
STRING |
A link to the user's profile photo, if available |
replies[].content |
STRING |
The plain text content of the reply. This field is used for setting the content, while htmlContent should be displayed. This is required on creates if no action is specified |
replies[].createdTime |
DATE_TIME |
The time at which the reply was created (RFC 3339 date-time) |
replies[].deleted |
BOOLEAN |
Whether the reply has been deleted. A deleted reply has no content |
replies[].htmlContent |
STRING |
The content of the reply with HTML formatting |
replies[].id |
STRING |
The ID of the reply |
replies[].kind |
STRING |
Identifies what kind of resource this is. Value: the fixed string "drive#reply" |
replies[].modifiedTime |
DATE_TIME |
The last time the reply was modified (RFC 3339 date-time) |
resolved |
BOOLEAN |
Whether the comment has been resolved by one of its replies |
= Parameter name
= Format
anchor STRING A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties |
author OBJECT Information about a Drive user |
author.displayName STRING A plain text displayable name for this user |
author.emailAddress STRING The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester |
author.kind STRING Identifies what kind of resource this is. Value: the fixed string "drive#user" |
author.me BOOLEAN Whether this user is the requesting user |
author.permissionId STRING The user's ID as visible in Permission resources |
author.photoLink STRING A link to the user's profile photo, if available |
content STRING The plain text content of the comment. This field is used for setting the content, while htmlContent should be displayed |
createdTime DATE_TIME The time at which the comment was created (RFC 3339 date-time) |
deleted BOOLEAN Whether the comment has been deleted. A deleted comment has no content |
htmlContent STRING The content of the comment with HTML formatting |
id STRING The ID of the comment |
kind STRING Identifies what kind of resource this is. Value: the fixed string "drive#comment" |
modifiedTime DATE_TIME The last time the comment or any of its replies was modified (RFC 3339 date-time) |
quotedFileContent OBJECT The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment |
quotedFileContent.mimeType STRING The MIME type of the quoted content |
quotedFileContent.value STRING The quoted content itself. This is interpreted as plain text if set through the API |
replies[] OBJECT A reply to a comment on a file |
replies[].action STRING The action the reply performed to the parent comment. Valid values are:
|
replies[].author OBJECT Information about a Drive user |
replies[].author.displayName STRING A plain text displayable name for this user |
replies[].author.emailAddress STRING The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester |
replies[].author.kind STRING Identifies what kind of resource this is. Value: the fixed string "drive#user" |
replies[].author.me BOOLEAN Whether this user is the requesting user |
replies[].author.permissionId STRING The user's ID as visible in Permission resources |
replies[].author.photoLink STRING A link to the user's profile photo, if available |
replies[].content STRING The plain text content of the reply. This field is used for setting the content, while htmlContent should be displayed. This is required on creates if no action is specified |
replies[].createdTime DATE_TIME The time at which the reply was created (RFC 3339 date-time) |
replies[].deleted BOOLEAN Whether the reply has been deleted. A deleted reply has no content |
replies[].htmlContent STRING The content of the reply with HTML formatting |
replies[].id STRING The ID of the reply |
replies[].kind STRING Identifies what kind of resource this is. Value: the fixed string "drive#reply" |
replies[].modifiedTime DATE_TIME The last time the reply was modified (RFC 3339 date-time) |
resolved BOOLEAN Whether the comment has been resolved by one of its replies |