Initial situation:
- In one of my python app, we use a service account to call Google Calendar API.
- User can share their calendars with my service account via its proper email address
- User also put shared calendars ids on my system
- On my system, i have a proper calendars ids with proper permissions from shared calendars with my service account
- I am trying to accept shared calendars with me by calendar id via Calendar Api with this endpoint https://developers.google.com/calendar/v3/reference/calendarList/insert?authuser=1
- I am not using G-Suite for service account
Current issue:
- When i accept shared calendar via API it returns the correct response with external calendar data but actually not inserting calendar to my list. I think it's through access role returned in response
accessRole=readerand looks like i don't have writer permissions from the service account.
I am using oauth2client and googleapiclient libraries to authenticate my service account.
CalendarList: listorCalendarList: getto check that?So I assume you're calling CalendarList: insert with your service account after the calendar has been shared by the user through the UI?- correct. When i am inserting shared calendar via API to my list i want to see that it was added in UI too, not only check throughCalendarList: list. So i was testing only through the UI.If you want something in that you need to do calendarlist.insert its not going to be inserted in automatically- Yeah, i am doing inserting on BE after user saves his calendar id on my system.CalendarList: listreturns the list of calendars? Also, why are you using a service account? Do you want the calendars to be shared with your regular account instead?