0
我是日曆API的新手,並且有幾個基本問題。如何獲取其他所有者共享的Google日曆活動?
我想讓所有日曆上的其他用戶[email protected]與我分享的所有活動。她是主人,而不是我。
「此用戶擁有或訂閱爲0.0日曆」是響應當我運行這段代碼:
var calendar = CalendarApp.getCalendarsByName('[email protected]');
if(calendar == null){
//user may not have access, auto-subscribe them.
calendar = CalendarApp.subscribeToCalendar('[email protected]',
{hidden:true,selected:false});
}
Logger.log('This user owns or is subscribed to %s calendars.',
calendar.length);