Ruby
Pull request Compare This branch is 1 commit ahead, 99 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'

Tumblife.configure do |config|
  config.consumer_key = '*** consumer key ***',
  config.consumer_secret = '*** consumer secret ***',
  config.oauth_token = '*** oauth token ***',
  config.oauth_token_secret = '*** oauth token secret ***'
end

client = Tumblife.client

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
activesupport

Copyright

Copyright (C) 2011 Kazuya Takeshima

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