构建一个 gsuite 日历会议插件并尝试使用以下代码段创建一个 onEventUpdate 触发器以将事件数据同步回 tp 会议系统
var trigger = ScriptApp.newTrigger('syncEvents')
.forUserCalendar(calendarId)
.onEventUpdated()
.create();
但收到“异常:很抱歉,发生服务器错误。请稍等,然后重试”
如果通过测试功能运行代码,则可以工作。
我会错过一个范围吗?在清单文件中有以下范围:
"oauthScopes": [
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/gmail.addons.execute",
"https://www.googleapis.com/auth/calendar",
"https://www.googleapis.com/auth/calendar.readonly",
"https://www.googleapis.com/auth/calendar.events",
"https://www.googleapis.com/auth/calendar.events.readonly",
"https://www.googleapis.com/auth/calendar.addons.execute",
"https://www.googleapis.com/auth/calendar.addons.current.event.read",
"https://www.googleapis.com/auth/calendar.addons.current.event.write",
"https://www.googleapis.com/auth/script.external_request",
"https://www.googleapis.com/auth/script.scriptapp",
"https://www.google.com/calendar/feeds"
],