Google Calendar API calendar id and event id

Sureshkumar Menon picture Sureshkumar Menon · Apr 29, 2013 · Viewed 16.6k times · Source

I am learning on how to access google calendar API for creating and accessing events. I am trying to understand API using OAuth 2.0 Playground. I am struggling on what to set for calendarid and eventid

https://www.googleapis.com/calendar/v3/calendars/{calendarId}/events/{eventId}

Can any one guide me.

Regards, Sureshkumar Menon

Answer

Daniel Roseman picture Daniel Roseman · Apr 30, 2013

calendarId is the email address of your calendar. If you're just using your own, then use the string "primary".

eventId is the ID of the event that you want to modify. If you don't have an event, you should either create one with the 'insert' call, which will include an eventId parameter that you can store and use to modify it later, or use the 'list' call to get a list of events.