Google Calendar Service Account with PHP API oauth2.0 - How to access calendars that are not shared

孤街浪徒 提交于 2019-12-02 10:14:00

If you want to access private calendars with a service account, you will need to either perform an authority delegation if you own the domain containing those calendars (https://developers.google.com/drive/web/delegation describes it for drive but it works for calendar) or you will need to share the private calendar with the email address of the service account.

Thanks for your suggestion.

It turns out the problem was that the person in charge of the API account did not to share the calendars with the developer account's server account e-mail.

Since I didn't have access to the API account settings and the error from Google Calendar API was not very descriptive it took a while to figure out.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!