Module: Tumblr::Blog

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

Overview

Tumblr::Blog patch

Instance Method Summary collapse

Instance Method Details

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



5
6
7
8
9
10
11
12
# File 'lib/draftking/patches/tumblr_client.rb', line 5

def blog_likes(blog_name, options = {})
  validate_options([:limit, :before, :after, :offset], options)
  url = blog_path(blog_name, 'likes')

  params = { api_key: @consumer_key }
  params.merge! options
  get(url, params)
end