Reputation: 296
I use the Google Calendar API to read from shared Google Calendars. Until recently when someone shared a calendar with me I would get an email that said the following...
Hello [email protected],
We are writing to let you know that [email protected] has given you access to view events on the Google Calendar called "[email protected]".
We have automatically added this calendar to your Google Calendar account. You can hide or completely remove this calendar at any time.
- The Google Calendar Team View Your Calendar.
Now it seems I need to actually accept and add the calendar before I can see it in my list. Here is what the last few emails look like...
Hello [email protected],
We are writing to let you know that [email protected] has given you access to view events on the Google Calendar called "My Calendar".
After adding this calendar to your other calendars, you can hide or completely remove it whenever you want.
Add this calendar.
- The Google Calendar Team View Your Calendar.
So I have to actually open the email and click on the "Add this calendar" link before I can see it. Anyone know of any changes or differences in some calendars vs others that would make me do this? I need the process to be automatic, so this is a bit of a burden. Thanks!
Upvotes: 0
Views: 622
Reputation: 26836
Now, after sharing the calendar the user has to manually add the calendar into his calendar list.
The necessary method is CalendarList: insert
If you are using a service account with domain-wide delegation, you can impersonate the user and let the service account add the calendar to the list on the user's behalf.
You did not mention which language your areusing. Please see here for sample of how to implement the insert
request in different programming languages.
Upvotes: 1