This is how to set up Google Calendar sharing from Ruby on Rails
- 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
- In your ruby code, the parameters you pass should contain calendarId. This is settings/calendars/calendar details
- See EventR for a working code sample