...
Share your calendar with the service account
Delegate domain-wide authority to your service account
- Install gem 'google-api-client'
- Sign in to your google account and visit: https://console.developers.google.com
- Click on APIs & auth/Credentials - Create new client ID (under OAuth)
- Select service account
- Copy private key to your local folder (in my case /Users/gijtenbeek/.eventr/<key>
- Sign in to the account of which you want to share the the google calendar
- Click on settings/calendars and 'edit settings' of the calendar you want to share
- In the field 'Share with specific people' add the developer email address: xxxxxx@developer.gserviceaccount.com
- select proper permissions
- Click on SAVE
- and set proper permissions
- In your ruby code, the parameters you pass should contain calendarId . This is settings/calendars/calendar details(primary) and person (the email address of the calendar user)
- See EventR for a working code sample