Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby

This branch is 2 commits ahead, 92 commits behind mitukiii:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
.rspec
Gemfile
MIT-LICENSE
README.md
Rakefile
tumblife.gemspec

README.md

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

Requirement

oauth
json
hashie
activesupport

Copyright

Released under the MIT license: http://www.opensource.org/licenses/MIT

Something went wrong with that request. Please try again.