Project

tumbl_rb

0.0
No commit activity in last 3 years
No release in over 3 years
Tumblr is a "feature rich and free blog hosting platform." Tumbl_rb is a ruby wrapper around v2 of the tumblr API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

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.