我想实现一个调度应用程序,Person X可以在特定时间创建一个事件,将其添加到他们的Google中。那么,个人Y应该能够注册相同的事件,并将其添加到他们的谷歌日历。was an error contacting the Calendar service: Error: Service accounts cannot invite attendees without Domain-WideDelegation of Authority.。import { google } from 'googleapis
在阅读了Google的文档后,我发现我需要一个服务帐户。因此,我从G-Suite的一个电子邮件地址noreply@xxxxx.com创建了一个项目和一个服务帐户,并启用了日历应用编程接口。Delegation of AuthorityDelegation of Authority."在Domain-WideDelegation上花了一些时间后,我明白如果我们必须以g-suite中的其他用户的身份发送事件,这是必要的,而对于我的问题来说但是,为了进行调试