Why is Google Calendar API (oauth2) responding with 'Insufficient Permission'?

后端 未结 8 1343
萌比男神i
萌比男神i 2020-12-01 17:42

I\'m doing a get request to the following URL (with {id} replaced with the id from the web interface):

https://www.googleapis.com/calendar/v3/calendars/{id}
         


        
8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-01 18:36

    I had to include the Google Plus scope in order to have sufficent permission to access a calendar:

    So my scope ended up looking like this:

    'https://www.googleapis.com/auth/calendar', 'https://www.googleapis.com/auth/calendar.readonly', 'https://www.googleapis.com/auth/plus.login'

提交回复
热议问题