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.

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Related posts:

  1. New in the Twitter gem: Lists!
  2. What makes a good API wrapper?
  3. Twitter gem updates: So long Mash, hello Hashie
Bookmark the permalink. Both comments and trackbacks are currently closed.
blog comments powered by Disqus