DiggRuby 2

Posted by John Wulff Mon, 07 May 2007 05:50:00 GMT

DiggRuby is a Ruby implementation of the Digg API. It provides an object-oriented interface to all of the available endpoints of the API. It is offered under the MIT License.

The code is hosted in a Google Project.

You can either download v0.1 or get the latest from SVN:
svn checkout http://digg-ruby.googlecode.com/svn/trunk/ digg-ruby
A simple example:
require 'digg'
digg = Digg.new               # create a digg client
digg.stories.each do |story|  # fetch and print titles of stories
  puts story.title
end

Mark Nutter has written about his experience with DiggRuby and how he created Diggraphy.

Also, there is a thread discussing DiggRuby in the official Digg API Google Group.

Enjoy.

Trackbacks

Use the following link to trackback from your own site:
http://www.johnwulff.com/trackbacks?article_id=11

Comments

Leave a comment

  1. Avatar
    Paulo Schneider 13 days later:
    Pretty nice API! I've learned a lot just by reading the source, and it helped in my path on ruby-like coding. It almost made me give up on creating a Digg API on my own. Almost...
  2. Avatar
    John Wulff 14 days later:
    Glad to hear it Paulo. Let me know when you release your API, I'd love to see it.
Comments