public
Description: snippets of ruby for playing with Google stuff
Homepage: http://rufus.rubyforge.org/rufus-google
Clone URL: git://github.com/jmettraux/rufus-google.git
jmettraux (author)
Mon Dec 01 01:00:06 -0800 2008
commit  ec98917d32b07fb03eeeeb7f26b7a06c33b63769
tree    e7e66dc89f3437658ba3de86fd51b3ce7f599a7f
parent  854e7d4906da443f66a852e2ec6a8739ab6735ef
rufus-google / README.txt
100644 99 lines (46 sloc) 1.684 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
= rufus-google
 
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...)
 
 
== getting it
 
  sudo gem install rufus-google
 
or at
 
http://rubyforge.org/frs/?group_id=4812
 
 
== usage
 
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.
 
 
== dependencies
 
the 'rufus-verbs' and the 'atom-tools' gems.
 
 
== mailing list
 
On the rufus-ruby list[http://groups.google.com/group/rufus-ruby] :
 
    http://groups.google.com/group/rufus-ruby
 
 
== issue tracker
 
http://rubyforge.org/tracker/?atid=18584&group_id=4812&func=browse
 
 
== irc
 
irc.freenode.net #ruote
 
 
== source
 
http://github.com/jmettraux/rufus-google
 
  git clone git://github.com/jmettraux/rufus-google.git
 
 
== author
 
John Mettraux, jmettraux@gmail.com
http://jmettraux.wordpress.com
 
 
== the rest of Rufus
 
http://rufus.rubyforge.org
 
 
== license
 
MIT