This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
jnunemaker (author)
Wed Dec 26 12:34:00 -0800 2007
| name | age | message | |
|---|---|---|---|
| |
History.txt | Wed Dec 26 12:32:42 -0800 2007 | [jnunemaker] |
| |
License.txt | Mon Nov 19 17:50:41 -0800 2007 | [jnunemaker] |
| |
Manifest.txt | Sat Nov 24 23:49:56 -0800 2007 | [jnunemaker] |
| |
README.txt | Mon Nov 19 18:27:45 -0800 2007 | [jnunemaker] |
| |
Rakefile | Mon Nov 19 17:50:41 -0800 2007 | [jnunemaker] |
| |
Todo.txt | Wed Dec 26 12:34:00 -0800 2007 | [jnunemaker] |
| |
config/ | Wed Dec 26 12:31:25 -0800 2007 | [jnunemaker] |
| |
examples/ | Wed Dec 26 12:30:45 -0800 2007 | [jnunemaker] |
| |
lib/ | Wed Dec 26 12:31:25 -0800 2007 | [jnunemaker] |
| |
log/ | Mon Nov 19 17:50:41 -0800 2007 | [jnunemaker] |
| |
script/ | Mon Nov 19 17:50:41 -0800 2007 | [jnunemaker] |
| |
setup.rb | Mon Nov 19 17:50:41 -0800 2007 | [jnunemaker] |
| |
tasks/ | Mon Nov 19 17:50:41 -0800 2007 | [jnunemaker] |
| |
test/ | Mon Nov 19 17:50:41 -0800 2007 | [jnunemaker] |
| |
website/ | Mon Nov 19 17:50:41 -0800 2007 | [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



