获取 Google Apps 脚本 CalendarApp 类中的所有日历

Tri*_*yen 0 google-calendar-api google-apps-script

因此,Google Apps 脚本允许您getCalendarByIDgetCalendarsByNamegetDefaultCalendar,当您需要定位特定日历时,这非常有用。但是,我想知道是否有办法获取与该帐户关联的所有日历?

我已经尝试过getCalendarsByName()getCalendarsByName('')并且getCalendarsByName('*')都不起作用。

Ser*_*sas 5

你有没有尝试过getAllCalendars()获取该用户订阅的所有日历