Google Calendar | Service Account

The Google Calendar client can work as a service without user interaction, so this is useful when you want to run a Windows service, a daemon, etc.

 

Google Cloud requires creating a Service Account (instead of OAuth2 credentials) to run this type of project, and the Google Calendar API requires that the service account uses Domain-Wide Delegation to get the required credentials to access the calendars.

 

You can read more about how to create Google Service Accounts.

 

Once the Google Cloud account has been configured with a service account and linked to a workspace email account using Domain-Wide Delegation, you can configure the Google Calendar client to work with it by following the next steps:

 

 

 

After configuring the client, you can start sending requests to the Google Calendar API without user interaction.