| Path: | README.txt |
| Last Update: | Thu Nov 13 18:11:29 +0900 2008 |
rufus-google should probably be named "rufus-gcal" for now, as only google calendar stuff is implemented.
This gem leverages ‘atom-tools’ to play with Google Data APIs.
The only authentication mechanism implemented for now is "ClientLogin".
(There is a one way synchronization tool for ical to gcal at
http://github.com/jmettraux/rufus-google/tree/master/tools/itog.rb
work in progress…)
sudo gem install rufus-google
or at
rubyforge.org/frs/?group_id=4812
Using Google Calendar :
require 'rubygems'
require 'rufus/gcal'
calendars = Rufus::Google::Calendar.get_calendars(
:account => ENV['GUSER'], :password => ENV['GPASS'])
#calendars.values.each { |c| p [ c.name, c.href ] }
cal = calendars['gwork']
event_id = cal.post_quick!('Tennis with John November 13 3pm-4:30pm')
cal.events(:q => 'tennis').each do |e|
puts
puts e.to_s
end
cal.delete!(event_id)
puts "#{cal.events(:q => 'tennis').size} tennis events"
Other Google APIs will be covered later, if the need arise.
the ‘rufus-verbs’ and the ‘atom-tools’ gems.
On the rufus-ruby list :
http://groups.google.com/group/rufus-ruby
rubyforge.org/tracker/?atid=18584&group_id=4812&func=browse
irc.freenode.net ruote
github.com/jmettraux/rufus-google
git clone git://github.com/jmettraux/rufus-google.git
John Mettraux, jmettraux@gmail.com jmettraux.wordpress.com
MIT