With a given eventobject of type CalendarEvent and a given calendarId, simplest and most efficient way to create a URL for viewing / editing, the corresponding event in the Google Calendar application is as follows:
var splitEventId = event.getId().split('@');
var eventURL = "https://www.google.com/calendar/event?eid=" + Utilities.base64Encode(splitEventId[0] + " " + calendarId);
Best of all, no API call, authentication and ... are necessary!
oลกky source
share