Google Drive - Get Comment Replies
@sergio
code:
data:privatelast updated:4 years ago
today
Build integrations remarkably fast!
You're viewing a public workflow template.
Sign up to customize, add steps, modify code and more.
Join 1,000,000+ developers using the Pipedream platform
steps.
trigger
HTTP API
Deploy to generate unique URL
This workflow runs on Pipedream's servers and is triggered by HTTP / Webhook requests.
steps.
googledrive_get_comment_replies
Gets a comment's replies.
auth
(auths.google_drive)
params
FileId

The ID of the file.

 
string ·params.fileId
CommentId

The ID of the comment.

 
string ·params.commentId
Optional
code
async (params, auths) => {
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
}
22
//See the API docs here: /files/{fileId}/comments/{commentId}/replies
const config = {
  url: `https://www.googleapis.com/drive/v3/files/${params.fileId}/comments/${params.commentId}/replies`,
  params: {
    includeDeleted: params.includeDeleted,
    pageSize: params.pageSize,
    pageToken: params.pageToken,
    alt: params.alt,
    fields: params.fields || "*", //For improved performance, select actual fields from the Comment entity required for your use case. "*" selects all fields.
    key: params.key,
    oauth_token: params.oauth_token,
    prettyPrint: params.prettyPrint,
    quotaUser: params.quotaUser,
    userIp: params.userIp,
  },
  headers: {
    Authorization: `Bearer ${auths.google_drive.oauth_access_token}`,
  },
}
return await require("@pipedreamhq/platform").axios(this, config)