Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Share your calendar with the service account

 

Delegate domain-wide authority to your service account

 

 

  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. and set proper permissions
  12. 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)
  13. See EventR for a working code sample