Simple Ruby wrapper for the Tumblr v2 API
gem install 'tumbl_rb'
none yet
TumblRb.configure do |config|
config.consumer_oauth_key = "1234567890" # API KEY
config.timeout = 5 # OPEN/READ TIMEOUT
config.open_timeout = 5 # OPEN TIMEOUT
end
TumblRb.info("andrewpthorp")
TumblRb.avatar("andrewpthorp")
TumblRb.posts("andrewpthorp")
TumblRb.posts("andrewpthorp", :type => "link")
TumblRb.posts("andrewpthorp", :id => 123456789)
Different types bring back different responses. To check them out, visit the documentation
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.
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.