I am currently working with Google Calendar API to fetch instances of recurring events, to retrieve the recurrence rule.
As suggested in https://stackoverflow.com/a/30505720/9524080, I am using singleEvents param while calling Events#list.
This allow me to fetch all instances of recurring events present in my calendar, while having a link to the original recurring event via recurringEventId.
By retrieving the event via this id, I am able to figure out the recurrence rule.
This is working as expected but there is an edge case.
When I am attendee of an instance of a recurring event while not being invited to the original recurring event, I can't use Events#get to retrieve the original recurring event, as it isn't present in my calendar (404 is thrown)
┌────────────────────────────────────────────────────┐ ┌────────────────────────────────────────────────────┐
│ My calendar │ │ Calendar 2 │
│ │ │ │
│ ┌──────────────────┐ │ │ ┌──────────────────┐ │
│ │ │ │ │ │ │ │
│ │ Recurring event │ │ │ │ Recurring event │ │
│ │ │ │ │ │ │ │
│ │ A │ │ │ │ B │ │
│ │ │ │ │ │ │ │
│ └──────────────────┘ │ │ └──────────────────┘ │
│ │ │ │
│ ┌──────────────────┐ ┌──────────────────┐ │ │ ┌──────────────────┐ │
│ │ │ │ │ │ │ │ │ │
│ │ Instance of │ │ Instance of │ │ │ │ Instance of │ │
│ │ recurring event │ │ recurring event │ │ │ │ recurring event │ │
│ │ A1 │ │ B1 │ │ │ │ B1 │ │
│ │ │ │ │ │ │ │ │ │
│ └──────────────────┘ └──────────────────┘ │ │ └──────────────────┘ │
│ │ │ │
│ │ │ │
└────────────────────────────────────────────────────┘ └────────────────────────────────────────────────────┘
(I can fetch A via A1, but not B via B1 because I only have instance B1 in my calendar and not B)
Is there any way, while using Events#list to return a list of instances of recurring events that includes only the instances of the original recurring events available in my calendar ?