public
Description: Wrapper for Google Reader's undocumented and possibly "unstable" API. By unstable, I mean if they haven't documented it, then they could change it at anytime without notice.
Homepage: http://googlereader.rubyforge.org/
Clone URL: git://github.com/jnunemaker/googlereader.git
jnunemaker (author)
Wed Dec 26 12:34:00 -0800 2007
commit  eb46de1092740ee19265f47d209c20ace4bd19e5
tree    baa98160aaa9b4f2c2d6e4887bb8db703e398b21
parent  9aefb0f2dcc6527f61f682058cacd815ee5f26ac
name age message
file History.txt Wed Dec 26 12:32:42 -0800 2007 updated history file git-svn-id: http://svn.a... [jnunemaker]
file License.txt Mon Nov 19 17:50:41 -0800 2007 initial add of google reader gem git-svn-id: ... [jnunemaker]
file Manifest.txt Sat Nov 24 23:49:56 -0800 2007 updated manifest git-svn-id: http://svn.addic... [jnunemaker]
file README.txt Mon Nov 19 18:27:45 -0800 2007 updated readme file git-svn-id: http://svn.ad... [jnunemaker]
file Rakefile Mon Nov 19 17:50:41 -0800 2007 initial add of google reader gem git-svn-id: ... [jnunemaker]
file Todo.txt Wed Dec 26 12:34:00 -0800 2007 udpated todo git-svn-id: http://svn.addictedt... [jnunemaker]
directory config/ Wed Dec 26 12:31:25 -0800 2007 updated gem requirements git-svn-id: http://s... [jnunemaker]
directory examples/ Wed Dec 26 12:30:45 -0800 2007 search seems to be working pretty well git-sv... [jnunemaker]
directory lib/ Wed Dec 26 12:31:25 -0800 2007 updated gem requirements git-svn-id: http://s... [jnunemaker]
directory log/ Mon Nov 19 17:50:41 -0800 2007 initial add of google reader gem git-svn-id: ... [jnunemaker]
directory script/ Mon Nov 19 17:50:41 -0800 2007 initial add of google reader gem git-svn-id: ... [jnunemaker]
file setup.rb Mon Nov 19 17:50:41 -0800 2007 initial add of google reader gem git-svn-id: ... [jnunemaker]
directory tasks/ Mon Nov 19 17:50:41 -0800 2007 initial add of google reader gem git-svn-id: ... [jnunemaker]
directory test/ Mon Nov 19 17:50:41 -0800 2007 initial add of google reader gem git-svn-id: ... [jnunemaker]
directory website/ Mon Nov 19 17:50:41 -0800 2007 initial add of google reader gem git-svn-id: ... [jnunemaker]
README.txt
= Installation

sudo gem install googlereader

= Usage

  require 'google/reader'
  Google::Reader::Base.establish_connection('username', 'password')

  # => all feeds and labels unread counts
  pp Google::Reader::Count.all

  # => all unread counts for labels
  pp Google::Reader::Count.labels

  # => all unread counts for feeds
  pp Google::Reader::Count.feeds

  # => all items for a label
  pp Google::Reader::Label.all
  
  puts 'Links'
  # 5 latest unread items
  unread = Google::Reader::Label.new('links').entries(:unread, :n => 5) 
  unread.each { |p| puts p.title }
  
  puts 'Using Continuation'
  # next 5 latest items after the unread above
  more_unread = Google::Reader::Label.new('links').entries(:unread, :n => 5, :c => unread.continuation) 
  more_unread.each { |p| puts p.title }
  
= Notes

I'm using the following links below as documentation (and also a bit of reverse engineering with Firebug) until google 
releases an official and documented api:

* http://code.google.com/p/pyrfeed/wiki/GoogleReaderAPI
* http://blog.gpowered.net/2007/08/google-reader-api-functions.html