如何使用Google Apps脚本读取日历事件重复设置 [英] How to Read Calendar Event Recurrence Settings Using Google Apps Script
问题描述
我似乎无法找出一种方法来使用Google Apps脚本读取CalendarEventSeries
的重复设置.
I can't seem to figure out a way how to read recurrence settings of an CalendarEventSeries
using Google Apps Script.
有一个 setRecurrence
方法;我正在寻找类似getRecurrence
的东西,希望它会返回 EventRecurrence
对象,表示 EventSeries
.
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
.
有什么想法吗?
我为什么需要这个?我只是想将一个日历中的事件复制到另一个日历中,并保留重复设置(如果有).
Why do I need this? I simply want to copy an event from one calendar to another, keeping the recurrence settings (if any).
推荐答案
尝试使用Calendar API而不是内置的日历库. 该API公开了更多信息.
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
这篇关于如何使用Google Apps脚本读取日历事件重复设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!