Skip to content

unixcharles/google_calendar_api_v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Work with Google Calendar using GData 2.0 + OAuth 1.0

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages