javascript - Google Script: How to get Recurring Events from Google Calendar? -
there's popular script on various websites allows 1 export google calendar events google spreadsheet. works fine ... except not work recurring events.
here's crux of code:
var mycal = "sample@gmail.com"; var cal = calendarapp.getcalendarbyid(mycal); var events = cal.getevents(new date(startdate), new date(enddate));
then 1 needs iterate through members of 'events'. problem appears recurring events defined in way 'getevents' not understand. query of date range containing recurring events finds nothing.
i'm wondering if has written code query recurring events?
robert
your assumption not correct, recurring events returned other ones.
i don't know script use if can't recurring events guess script not good.
i'm not going publish whole code here because version use bit long can make copy of spreadsheet , test yourself.
https://docs.google.com/spreadsheets/d/1h0uayz7fachbnhifwwy-xyluomdsfkqblbrhcgnwthy/edit?usp=sharing
run opopen once menu authorization use spreadsheet menu. you'll ui ask define calendar use , start / end dates. these values stored in properties next usage.
Comments
Post a Comment