$service->events->get expects the calendar id and event id as parameters
It is important to double-check that both parameters are correct
'mygooglecalendarid'is not your
primarycalendar, then you are trying to get the event from one calendar and update it into a different one – this will give you a 404 error (bad request).
- If the eventid is not correct, this will also lead to a 404 error. The latter can be verified by using the Try This API feature for Events:get
- Possible ways to retrieve the correct event id are either listing events or retrieve the
calendar.google.com/calendar/r/eventedit/...url and build the event id through decoding.