Module: Tumblr::User

Defined in:
lib/draftking/patches/tumblr_client.rb

Instance Method Summary collapse

Instance Method Details

#dashboard(options = {}) ⇒ Object



15
16
17
18
19
# File 'lib/draftking/patches/tumblr_client.rb', line 15

def dashboard(options = {})
  valid_opts = [:limit, :offset, :type, :since_id, :reblog_info, :notes_info, :max_id]
  validate_options(valid_opts, options)
  get('v2/user/dashboard', options)
end

#draft(blog_name, options = {}) ⇒ Object



31
32
33
34
# File 'lib/draftking/patches/tumblr_client.rb', line 31

def draft(blog_name, options = {})
  validate_options([:limit, :before_id], options)
  get(blog_path(blog_name, 'posts/draft'), options)
end

#likes(options = {}) ⇒ Object



21
22
23
24
# File 'lib/draftking/patches/tumblr_client.rb', line 21

def likes(options = {})
  validate_options([:limit, :offset, :before, :after], options)
  get('v2/user/likes', options)
end

#queue(blog_name, options = {}) ⇒ Object



26
27
28
29
# File 'lib/draftking/patches/tumblr_client.rb', line 26

def queue(blog_name, options = {})
  validate_options([:limit, :offset], options)
  get(blog_path(blog_name, 'posts/queue'), options)
end