...
Share your calendar with the service account
Your service account will need to have access to the Google Calendar of the calendar user, to do this:
- Sign in to the account of which you want to share the Google Calendar.
- Visit Google Calendar
- Click on 'edit settings'
Delegate domain-wide authority to your service account
Setup your rails environment
- Install gem 'google-api-client'
- Copy private key to your local folder and set proper permissions
- In your ruby code, the parameters you pass should contain calendarId (primary) and person (the email address of the calendar user)
- See EventR for a working code sample