Tumbl_rb

Simple Ruby wrapper for the Tumblr v2 API

Build Status Dependency Status

Installation

gem install 'tumbl_rb'

Documentation

none yet

Examples

Global Configuration

TumblRb.configure do |config|
    config.consumer_oauth_key   = "1234567890" # API KEY
    config.timeout              = 5 # OPEN/READ TIMEOUT
    config.open_timeout         = 5 # OPEN TIMEOUT
end

Get a Blog's info

TumblRb.info("andrewpthorp")

Get a Blog's avatar

TumblRb.avatar("andrewpthorp")

Get Blog Posts

TumblRb.posts("andrewpthorp")
TumblRb.posts("andrewpthorp", :type => "link")

Get a specific post

TumblRb.posts("andrewpthorp", :id => 123456789)

Different types bring back different responses. To check them out, visit the documentation

Version

This gem supports the methods of the Tumblr API that do not require OAuth. This may change before v3 of the Tumblr API, and will definitely change after v3 of the Tumblr API.

Inspiration

Tumbl_rb was heavily inspired by octokit and sqoot. Reading through and understanding those projects was crucial to understanding the anatomy of a gem (specifically an API wrapper gem). Thanks!

Copyright (c) 2012 Andrew Thorp. See LICENSE for details.