Tumblife is a simple Tumblr API v2 library.
Ruby
Pull request Compare This branch is 2 commits ahead, 112 commits behind mitukiii:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
Gemfile
README.rdoc
Rakefile
tumblife.gemspec

README.rdoc

Tumblife

Tumblife is a simple Tumblr API v2 library.

Install

$ gem install tumblife

Example

require 'tumblife'

consumer = OAuth::Consumer.new(
  '*** consumer key ***',
  '*** consumer secret ***',
  {site: 'http://api.tumblr.com'}
)
access_token = OAuth::AccessToken.new(
  consumer,
  '*** oauth token ***',
  '*** oauth token secret ***'
)

client = Tumblife.new(access_token)

avatar = client.avatar('mitukiii.tumblr.com')
avatar.avatar_url # => http://30.media.tumblr.com/avatar_3a8918dc3a7b_64.png

info = client.info('mitukiii.tumblr.com')
info.blog.name # => mitukiii
info.blog.url # => http://mitukiii.tumblr.com/

dashboard = client.dashboard
dashboard.posts.each do |post|
  # ... do something
end

Requirements

oauth
json
hashie

Copyright

Copyright (C) 2011 Kazuya Takeshima

Released under the WTFPL: sam.zoy.org/wtfpl