1
votes

I'm using the google calendar API in javascript with google-oauth-jwt.

For a target user, I can list events from its default calender (after having shared it with the service account email).
With a simple "get" on https://www.googleapis.com/calendar/v3/calendars/[email protected]/events

If I create a new calendar for this user directly 'by hand', I can't see any of the events from this calendar even if I shared it with the service account.

Do I forget something ? Any Idea ?

Thanks.

1

1 Answers

0
votes

Secondary calendars have their own calendar ID values. In place of [email protected] for the calendar id, you need something like

 [email protected]

That you can find in the Calendar web page by clicking the little down arrow next to the calendar's name in the My Calendars display, and choosing "Calendar settings."

I don't believe the API gives you a feature that will merge events from two different calendars.