且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Google日历:修改事件访客状态

更新时间:2023-12-01 16:13:46

使用CalendarApp仅限于 setMyStatus 方法,您只能设置有效用户的事件状态。

Using CalendarApp you are limited to the setMyStatus method and you can only set the event status of the effective user.

如果所有用户都在您的域名上,那么您可以设想运行服务帐户并使用域名委托,调用 Calendar API 通过 UrlFetch 并假冒每个用户,将他们的responseStatus设置为拒绝该事件。

If all users are on your domain then you could conceivably run a service account with domain delegation, calling the Calendar API via UrlFetch and impersonating each user, setting their "responseStatus" to "declined" for the event.