Google apps script createEvent的可见性=Private
我有如下基本的Google应用程序脚本代码:Google apps script createEvent的可见性=Private,google-apps-script,Google Apps Script,我有如下基本的Google应用程序脚本代码: myCal.createEvent( eventName, startDate, endDate ); 其中变量是基本字符串和日期时间变量。没有问题 此外,我还希望创建此事件,将可见性设置为私有。我可以在界面上看到每个日历事件的此选项,但在createEvent中看不到有关此选项的任何文档 我缺少什么吗?CalendarEvent对象中有一个setVisibility方法。 createEvent()的返回类型为CalendarEvent m
myCal.createEvent( eventName, startDate, endDate );
其中变量是基本字符串和日期时间变量。没有问题
此外,我还希望创建此事件,将可见性设置为私有。我可以在界面上看到每个日历事件的此选项,但在createEvent
中看不到有关此选项的任何文档
我缺少什么吗?CalendarEvent对象中有一个setVisibility方法。
createEvent()的返回类型为CalendarEvent
myCal.createEvent( eventName, startDate, endDate )
.setVisibility(CalendarApp.Visibility.PRIVATE);