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

后端 未结 8 1332
萌比男神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条回答
  •  萌比男神i
    2020-12-01 18:24

    I had the same issue while I was trying to add an event in my google calendar. How I finally fixed this :

    • delete my file 'credentials.json'
    • launch a Python program which looks like the Google's quickstart program with written in " SCOPES = 'https://www.googleapis.com/auth/calendar' ". This program was the only solution that worked for me. Launch my django command to call my real work did not work for me. But this fixed my permission problem.

    Then, it opens your browser and google asks your permission to manage your calendar and create a new 'credentials.json' in your repertory.

提交回复
热议问题