-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME
48 lines (31 loc) · 1021 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
= 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 <http://twitter.com/tmaeda>
Copyright:: Copyright (c) 2009 Tomoki MAEDA
License:: Ruby's license