Currently supports:
CLIENT_KEY = '000000000000.apps.googleusercontent.com'
CLIENT_SECRET = 'abcdefghijklmnopqrstuvwx'
DOMAIN = 'example.com'
# Setup
require 'gaah'
Gaah.setup_oauth(CLIENT_KEY, CLIENT_SECRET)
Gaah.domain = DOMAIN
# Get users
users = Gaah::Provisioning::Api.users
user = users.first
user.id # "https://apps-apis.google.com/a/feeds/example.com/user/2.0/bobert"
user.name # "Bobert Jones"
user.title # "bobert"
# Get calendar events
xoauth_requestor_id = 'me@example.com'
events = user.events(xoauth_requestor_id)
event = events.first
event.title # "Meeting with Joe"
event.when.start_time # 2013-04-16 13:00:00 -0400
Warning: Google documentation links sometimes move without good redirection.
- Google Data APIs
- Google Apps Application APIs
- Google Apps Administrative APIs
- Google Calendar API v2
- Google Apps Provisioning API v2
- Look into data api v3 when Provisioning API is updated
- Possibly integrate Google Apps Calendar Resource API
- Error handling