我正在编写一个脚本,它将在我的Google中添加一系列事件,邀请每个人的列表,并在事件发生前5分钟使用'addEmailReminder(minutesBefore)‘方法发送提醒。我使用了两个朋友作为测试,虽然它们成功地添加到事件中,但是通知计时器都是不同的。
我将minutesBefore设置为5,但当我(主机)收到5分钟提醒时,其他电子邮件的通知在日历上的事件中自动设置为10分钟和30分钟,而不是我的代码调用的5分钟。
这是因为谷歌喜欢聪明,从你的选择中学习,并自动默认某些价值吗?
代码:
var addThisClass = myCalendar.createEvent(eventName, testStartTime, endTime,{guests: emailList, sendInvites: false});
addThisClass.addEmailReminder(5);
发布于 2020-03-17 10:50:30
正如您在文档中所看到的
Reminders are private information, specific to an authenticated user; they are NOT shared across multiple users.
因此,当您通过.addEmailReminder(5)
方法设置提醒时,您只覆盖提醒的私有数组。这就是为什么你的朋友不会收到任何电子邮件通知。
https://stackoverflow.com/questions/60709658
复制相似问题