To communicate with Google Calendar you need to create a FREE project in Google Cloud. Don't worry, it is not a long process and I will guide you step by step through this simple procedure.
-
Create a Google Cloud project for Google Workspace app, extension or integration
-
Enable the APIs you want to use in your Google Cloud project.
- Access the hamburger menu;
- APIs & Services;
- Enables APIs & services;
- ENABLE APIS AND SERVICES;
- Search for Google Calendar API;
- Enable Google Calendar API.
- CREATE CREDENTIALS;
- Credential type.
- Select User data;
- Press next.
- OAuth Consent Screen.
- Now you can fill in only the necessary credentials with your personal information.
- Go to SAVE AND CONTINUE.
- Scopes (Optional)
- The "Scopes" section is completely optional, so you can ignore it and go to the next section.
- OAuth Client ID.
- Set the application type to Desktop application;
- Go to CREATE.
- Credentials.
- Now you can download the credentials.json file.
- Press DONE.
- Credential type.
-
Create login credentials to authenticate end users or service accounts in your app.
-
Download the credentials .json file and rename it to "client.json". Place it in the settings folder located at the root of the project (create the folder if it does not already exist).