Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Calendar API calendar id and event id

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

like image 924
Sureshkumar Menon Avatar asked Apr 29 '13 18:04

Sureshkumar Menon


2 Answers

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.

like image 56
Daniel Roseman Avatar answered Sep 18 '22 13:09

Daniel Roseman


I was facing similar issue and got solution to find the calendar event id:

->Go to the event debugging URL at https://www.google.com/calendar/render?gsessionid=OK&eventdeb=1.
->Double click to view the affected event.
->Select the drop down menu 'More Actions'.
->Click on the 'Troubleshooting Info'.
->Copy the text that appears and paste it in your reply to support.

You can refer the below link which gives details with screen shot
http://googleappstroubleshootinghelp.blogspot.in/2012/09/how-to-find-troubleshooting-information.html
However i am still looking for a solution to get event ids dynamically.
like image 37
Krishna Avatar answered Sep 20 '22 13:09

Krishna