You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This is how to set up Google Calendar sharing from Ruby on Rails

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