Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simple ruby wrapper for the tumblr v2 API.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Guardfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 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.