Set up Service Account authentication
mainTo use a Service Account:
- Create a project in the Google API console.
- Enable the Google Calendar API.
- Create a Service account key (JSON format) under the Credentials tab.
- Save the JSON file to your project (e.g.,
storage/app/google-calendar/service-account-credentials.json). - Crucial: Go to your Google Calendar settings, find the "Share with specific people" section, and add the Service account email address (found in your JSON file) with permission to manage the calendar.
- Copy the Calendar ID from the "Integrate calendar" section of your Google Calendar settings into your config.