Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tmaeda/tumblr4r

Tumblr API wrapper for Ruby
https://github.com/tmaeda/tumblr4r

Last synced: about 2 months ago
JSON representation

Tumblr API wrapper for Ruby

Awesome Lists containing this project

README

        

= tumblr4r

* http://github.com/tmaeda/tumblr4r

== Description

Tumblr API wrapper for Ruby.

== Synopsis

Finding by conditions.
require 'rubygems'
require 'tumblr4r'

site_a = Tumblr4r::Site.new("site_a.tumblr.com")
posts = site_a.find(:all)
quote_posts = site_a.find(:all, :type => "quote")
posts_offset_and_limit = site_a.find(:all, :offset => 50, :limit => 20)
quote_search = site_a.find(:all, :type => "quote", :search => "foo")
quote_tagged = site_a.find(:all, :type => "quote", :tagged => "bar")

Finding by id.
post = site_a.find(12345678)

Posting.
site_b = Tumblr4r::Site.new("site_b.tumblr.com", "[email protected]", "password")
site_b.save(post[0])

Deleting.
site_b.delete(post[0].post_id)

== Installation

gem install tumblr4r

== Problems

* Can't get private posts yet.
* Can't upload audio and video data yet.
* Can't handle feeds yet.

== Copyright

Author:: Tomoki MAEDA
Copyright:: Copyright (c) 2009 Tomoki MAEDA
License:: Ruby's license