0
votes

I'm trying to use the Google Calendar API

https://developers.google.com/calendar/quickstart/python

But when I try and create credentials, there's no option to download the associated json file:

enter image description here

How do I get my hands on the credentials.json?

1

1 Answers

1
votes

How about this answer?

I think that from your image, you are trying to retrieve the file from API key. When you want to use the JSON file of the credential at the Quickstart, please retrieve the file from "OAuth 2.0 client IDs". The flow for retrieving it is as follows.

Flow:

  1. Select "OAuth client ID" at "Create credentials".

    • enter image description here
  2. Select "Other" as "Application type", and input name. Then, click "Create". I think that you can also use "Web application".

By this flow, you can see the download button as follows. When you click the button, you can download the credential file. This can be used for the Quickstart script.

enter image description here

References:

If this was not what you want, I apologize.