How to Read Calendar Event Recurrence Settings Usi

2019-08-08 21:57发布

问题:

I can't seem to figure out a way how to read recurrence settings of an CalendarEventSeries using Google Apps Script.

There is a setRecurrence method; I am looking for something like getRecurrence hoping it would return an EventRecurrence object representing the recurrence settings of an EventSeries.

Any ideas?


Why do I need this? I simply want to copy an event from one calendar to another, keeping the recurrence settings (if any).

回答1:

Try using the Calendar API instead of the builtin calendar library. The API exposes much more information.

https://developers.google.com/google-apps/calendar/v3/reference/events/instances