Module: Tumblr::User
- Defined in:
- lib/draftking/patches/tumblr_client.rb
Instance Method Summary collapse
- #dashboard(options = {}) ⇒ Object
- #draft(blog_name, options = {}) ⇒ Object
- #likes(options = {}) ⇒ Object
- #queue(blog_name, options = {}) ⇒ Object
Instance Method Details
#dashboard(options = {}) ⇒ Object
15 16 17 18 19 |
# File 'lib/draftking/patches/tumblr_client.rb', line 15 def dashboard( = {}) valid_opts = [:limit, :offset, :type, :since_id, :reblog_info, :notes_info, :max_id] (valid_opts, ) get('v2/user/dashboard', ) end |
#draft(blog_name, options = {}) ⇒ Object
31 32 33 34 |
# File 'lib/draftking/patches/tumblr_client.rb', line 31 def draft(blog_name, = {}) ([:limit, :before_id], ) get(blog_path(blog_name, 'posts/draft'), ) end |
#likes(options = {}) ⇒ Object
21 22 23 24 |
# File 'lib/draftking/patches/tumblr_client.rb', line 21 def likes( = {}) ([:limit, :offset, :before, :after], ) get('v2/user/likes', ) end |
#queue(blog_name, options = {}) ⇒ Object
26 27 28 29 |
# File 'lib/draftking/patches/tumblr_client.rb', line 26 def queue(blog_name, = {}) ([:limit, :offset], ) get(blog_path(blog_name, 'posts/queue'), ) end |