我目前正在研究一个Nest JS项目,该项目利用Google节点软件包从用户日历(GCAL)删除事件。 GCAL成功删除了会议,但是删除通知会议来自API用于连接的管理帐户。
有没有办法使发送给与会者的通知别名,因此看来日历的所有者发送了通知,而不是Google API管理员?
节点包
https://www.npmjs.com/package/package/google
Google api api delete文档
这是代码段
// https://googleapis.dev/nodejs/googleapis/latest/calendar/classes/Resource$Events.html#delete
await this.calendar.events.delete({
calendarId,
eventId,
sendNotifications: true,
sendUpdates: 'all',
});
I am currently working on a nest JS project that leverages the google node package to delete an event from a users calendar (gcal). Gcal successfully deletes the meeting, but the deletion notification to attendees comes from the administration account the api uses to connect.
Is there a way to alias the notification that is sent out to attendees so it looks like the owner of the calendar sent out the notification, not the google api administrator?
node package
https://www.npmjs.com/package/google
google api delete docs
https://googleapis.dev/nodejs/googleapis/latest/calendar/classes/Resource$Events.html#delete
This is the code snippet
// https://googleapis.dev/nodejs/googleapis/latest/calendar/classes/Resource$Events.html#delete
await this.calendar.events.delete({
calendarId,
eventId,
sendNotifications: true,
sendUpdates: 'all',
});
发布评论
评论(1)
“api 用于连接的管理帐户”
。注意:确保经过身份验证的用户(和/或删除调用的执行者)对受影响的事件拥有足够的权限,以便将其删除或使用具有日历管理员角色(或超级管理员)的帐户。
"administration account the api uses to connect"
.NOTE: Make sure the authenticated user (and/or the actor of the delete call) has enough permissions over the affected event in order to delete it or use an account with Calendar Admin role (or Super Admin).