18 December 2009
Filed under Blog

The Twitter gem now supports Tumblr

On the heels of the announcement that Tumblr now supports the Twitter API, we're happy to say the Twitter gem now supports Tumblr!

Be sure and grab 0.8.0:

sudo gem install twitter

To use the gem with Tumblr, pass a new argument when using HTTPAuth. Also note your username is your email address on Tumblr:

httpauth = Twitter::HTTPAuth.new('email', 'password', :api_endpoint => 'tumblr.com')
base = Twitter::Base.new(httpauth)

pp base.user_timeline

Tumblr does not support all API methods and instead returns 404s. I'll look into a way to catch those and raise NotImplemented instead.

Like this? Why not grab the feed?