Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find the Event Id of my Google Calendar event?

I created some Google Calendar events and now I would like to do some operations on them programmatically.

Trouble is I don't have their IDs.

When I go into the calendar and click on the event, there is nowhere where I can see the ID.

Does anyone know where I can find it?

like image 403
CodyBugstein Avatar asked Sep 24 '15 07:09

CodyBugstein


People also ask

How do I find the link to a calendar event?

Open your Google Calendar and select the event you want to share. Click the three dots to open the option menu. Click “Publish event” Copy the URL and paste the link on any platform you want.

What is calendar ID in Google Calendar API?

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.


1 Answers

On The Google Calendar Website

Since he originally asked how to click into the calendar and find the ID of a particular event, and since that's what I needed to know how to do too:

  1. Click the event in your Google Calendar.

  2. It will take you to a page with a URL such as https://calendar.google.com/calendar/render?pli=1#eventpage_6%7Ceid-NGh0Z3BtbTFobWFrNzQ0cjBrYmtkY29kYXIgZXVndTlrYW4xZGRpMXBtaTZzazNpYjWoNmdAZw-1-0-

  3. Look for "eid" in the URL.

  4. Select and copy the string between eid- and the next -. (In my example here, it is NGh0Z3BtbTFobWFrNzQ0cjBrYmtkY29kYXIgZXVndTlrYW4xZGRpMXBtaTZzazNpYjWoNmdAZw.)

  5. Now you need to decode from Base64 format. You could paste that string into a tool such as https://www.base64decode.org/.

  6. The result will be two strings separated by a space. The first string is your Event ID.

like image 159
Ryan Avatar answered Sep 23 '22 08:09

Ryan