Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

[DEAD AND UNMAINTAINED] 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.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 config
Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 log
Octocat-spinner-32 script
Octocat-spinner-32 tasks
Octocat-spinner-32 test
Octocat-spinner-32 website
Octocat-spinner-32 History.txt
Octocat-spinner-32 License.txt
Octocat-spinner-32 Manifest.txt
Octocat-spinner-32 README.txt
Octocat-spinner-32 Rakefile
Octocat-spinner-32 Todo.txt
Octocat-spinner-32 setup.rb
README.txt
DEAD AND UNMAINTAINED

= 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
Something went wrong with that request. Please try again.