Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Work with Google Calendar using GData 2.0 + OAuth 1.0

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 google_calendar_api_v2.gemspec
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.