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?
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.
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.
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:
Click the event in your Google Calendar.
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-
Look for "eid" in the URL.
Select and copy the string between eid-
and the next -
. (In my example here, it is NGh0Z3BtbTFobWFrNzQ0cjBrYmtkY29kYXIgZXVndTlrYW4xZGRpMXBtaTZzazNpYjWoNmdAZw
.)
Now you need to decode from Base64 format. You could paste that string into a tool such as https://www.base64decode.org/.
The result will be two strings separated by a space. The first string is your Event ID.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With