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

后端 未结 2 1282
轻奢々
轻奢々 2021-01-25 21:33

I\'m having trouble reading calendar events with the PHP libraries provided by Google. The calendars that I want to read are NOT publicly shared, but I want to read them on my s

2条回答
  •  花落未央
    2021-01-25 22:09

    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.

提交回复
热议问题