Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple ruby wrapper for the tumblr v2 API.
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
.rspec
.travis.yml
Gemfile
Guardfile
LICENSE
README.md
Rakefile
tumbl_rb.gemspec

README.md

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")

Get all posts of a specific type (text, quote, link, answer, video, audio, photo, chat)

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

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

Something went wrong with that request. Please try again.