The ID of the file.
The ID of the comment.
async
(params, auths) => {
}
//See the API docs here: https://developers.google.com/drive/api/v3/reference/replies/create?authuser=2
const data = {
action: params.action,
author: params.author,
content: params.content,
createdTime: params.createdTime,
deleted: params.deleted,
htmlContent: params.htmlContent,
id: params.id,
kind: params.kind,
modifiedTime: params.modifiedTime,
}
const config = {
method: "post",
url: `https://www.googleapis.com/drive/v3/files/${params.fileId}/comments/${params.commentId}/replies`,
params: {
alt: params.alt,
fields: params.fields || "*", //For improved performance, select actual fields from the related 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}`,
},
data,
}
return await require("@pipedreamhq/platform").axios(this, config)