Sha256: 9f01a17c0b82f27e8a2894113a9b5fafb2ca48e4febfbe7ac1132e6ba8dd3f21
Contents?: true
Size: 1.01 KB
Versions: 4
Compression:
Stored size: 1.01 KB
Contents
module Tumblr class Client module User def info info = get("v2/user/info") end def dashboard(options={}) valid_opts = [:limit, :offset, :type, :since_id, :reblog_info, :notes_info] if valid_options(valid_opts, options) get("v2/user/dashboard", options) end end def likes(offset=0, limit=20) likes = get("v2/user/likes", {:limit => limit, :offset => offset}) end def following(offset=0, limit=20) following = get("v2/user/following", {:limit => limit, :offset => offset}) end def follow(url) follow = post("v2/user/follow", {:url => url}) end def unfollow(url) follow = post("v2/user/unfollow", {:url => url}) end def like(id, reblog_key) like = post("v2/user/like", {:id => id, :reblog_key => reblog_key}) end def unlike(id, reblog_key) unlike = post("v2/user/unlike", {:id => id, :reblog_key => reblog_key}) end end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
tumblr_client-0.6.11 | lib/tumblr/user.rb |
tumblr_client-0.6.9 | lib/tumblr/user.rb |
tumblr_client-0.6.8 | lib/tumblr/user.rb |
tumblr_client_faraday_0_8-0.6.7.1 | lib/tumblr/user.rb |