Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Work with Google Calendar using GData 2.0 + OAuth 1.0
Ruby
Branch: master
Failed to load latest commit information.
lib Implement index query for calendars and events
LICENSE Change license to MIT
README.md Initial commit
google_calendar_api_v2.gemspec Bump 0.1.3

README.md

Find & Create + Update & Delete

All you need to survive a syncronization project with Google Calendar using GData 2.0 + OAuth 1.0

Synopsis

require 'google_calendar'
client = GoogleCalendarApiV2::Client.new "teambox.com", "secret", "oauth_token", "oauth_secret"

calendar = client.calendars.find 'calendar_token' || client.calendars.create { :title => "Teambox" }

calendar[:title] = 'Teambox calendar'

calendar.save

event = calendar.events.find 'calendar_token'

event[:title] = 'Updated event name'
event.save

event.destroy
calendar.destroy
Something went wrong with that request. Please try again.