lib/tumblr/writer.rb in tumblr-rb-1.2.0 vs lib/tumblr/writer.rb in tumblr-rb-1.3.0
- old
+ new
@@ -20,9 +20,16 @@
edit.url = 'http://www.tumblr.com/api/write'
edit.requires = [:email, :password, :'post-id']
edit.with = (Post::BASIC_PARAMS | Post::POST_PARAMS)
end
+ # http://www.tumblr.com/docs/en/api#reblogging_posts
+ post :reblog do |reblog|
+ reblog.url = 'http://www.tumblr.com/api/reblog'
+ reblog.requires = [:email, :password, :'post-id', :'reblog-key']
+ reblog.with = (Post::BASIC_PARAMS | Post::POST_PARAMS | Post::REBLOG_PARAMS)
+ end
+
# http://www.tumblr.com/docs/en/api#deleting_posts
post :delete do |del|
del.url = 'http://www.tumblr.com/api/delete'
del.requires = [:email, :password, :'post-id']
end
\ No newline at end of file