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}
I have had to delete permissions to my application and then back to give permissions in https://security.google.com/settings/security/permissions
When I did the example in QuickStart, I could get the list of the events from my calendar.
But I was using the SCOPE='https://www.googleapis.com/auth/calendar.readonly'.
When I execute the code was generated a link, where I had to create a key for permission to list the events from Calendar.
So, when I tried to insert an event I had this error INSUFICIENT PERMISSION.
To solve this issue:
1) I changed the SCOPE to https://www.googleapis.com/auth/calendar
2) delete the file token.json
3) execute the code again, and I had to create a new key for permission, now with the permission to insert a new event.