0.01
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Access Google Reader in a quick and simple way, using plain Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

~> 1.4.4
~> 1.6.1
 Project Readme

Google Reader Client

Access your Google Reader account from Ruby:

require "google_reader"
# Get an instance of a client like this
# This hits the network to get a token immediately
client = GoogleReader::Client.authenticate(USERNAME, PASSWORD)

# Save the token to the database, somehow
client.token

# Alternatively, if you save the token, you can authenticate using
# the token, which doesn't hit the network
client = GoogleReader::Client.authenticate(TOKEN)

# Then, call any of these
client.unread_items
client.read_items
client.broadcast_items
client.body_link_used_items
client.item_link_used_items
client.clicked_through_items
client.emailed_items
client.starred_items

# To receive an Array of Atom Entries:
item = client.items.unread
p item.title
p item.categories
p item.id
p item.published_at
p item.updated_at
p item.href
p item.author_unknown?
p item.author
p item.source
p item.liking_users
p item.summary

# You may also get feed objects back, which then allow you to query "since" a time
feed = client.read_feed
cutoff_at = feed.updated_at
sleep 30
client.read_feed(:since => cutoff_at) # Only new items since that cutoff time

Ruby Library

google_reader’s specifications are certified to run on MRI 1.9.2, MRI 1.8.7, REE 1.8.7-2011-03, Rubinius head (2011/05/03) and JRuby 1.6.0 (in 1.8 mode).

LICENSE

(The MIT License)

Copyright © 2008-2009 François Beausoleil (francois@teksol.info)

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
‘Software’), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.