module Tumblr::User
Public Instance Methods
dashboard(options = {})
click to toggle source
# File lib/tumblr/user.rb, line 8 def dashboard(options = {}) valid_opts = [:limit, :offset, :type, :since_id, :reblog_info, :notes_info] validate_options(valid_opts, options) get('v2/user/dashboard', options) end
follow(url)
click to toggle source
# File lib/tumblr/user.rb, line 24 def follow(url) post('v2/user/follow', :url => url) end
following(options = {})
click to toggle source
# File lib/tumblr/user.rb, line 19 def following(options = {}) validate_options([:limit, :offset], options) get('v2/user/following', options) end
info()
click to toggle source
# File lib/tumblr/user.rb, line 4 def info get('v2/user/info') end
like(id, reblog_key)
click to toggle source
# File lib/tumblr/user.rb, line 32 def like(id, reblog_key) post('v2/user/like', :id => id, :reblog_key => reblog_key) end
likes(options = {})
click to toggle source
# File lib/tumblr/user.rb, line 14 def likes(options = {}) validate_options([:limit, :offset], options) get('v2/user/likes', options) end
unfollow(url)
click to toggle source
# File lib/tumblr/user.rb, line 28 def unfollow(url) post('v2/user/unfollow', :url => url) end
unlike(id, reblog_key)
click to toggle source
# File lib/tumblr/user.rb, line 36 def unlike(id, reblog_key) post('v2/user/unlike', :id => id, :reblog_key => reblog_key) end