Class: TumblrWrapper::Blog

Inherits:
BlogResource show all
Defined in:
lib/tumblr_wrapper/resources/blog.rb

Instance Attribute Summary

Attributes inherited from BlogResource

#access_token, #hostname

Attributes inherited from Resource

#access_token

Instance Method Summary collapse

Methods inherited from BlogResource

#blog, #initialize, #post

Methods inherited from Resource

#initialize

Methods included from HTTP

#http_get, #http_post

Methods included from Validators

#validate_not_present, #validate_oauth, #validate_present

Constructor Details

This class inherits a constructor from TumblrWrapper::BlogResource

Instance Method Details

#followers(parameters = {}) ⇒ Object



12
13
14
# File 'lib/tumblr_wrapper/resources/blog.rb', line 12

def followers(parameters={})
  http_get('followers', {signed: true}, parameters)
end

#infoObject

Required parameters: N/A www.tumblr.com/docs/en/api/v2#blog-info



5
6
7
# File 'lib/tumblr_wrapper/resources/blog.rb', line 5

def info
  http_get('info')
end

#posts(parameters = {}) ⇒ Object

Required parameters: N/A www.tumblr.com/docs/en/api/v2#posts



19
20
21
22
# File 'lib/tumblr_wrapper/resources/blog.rb', line 19

def posts(parameters={})
  # for some reason the / is needed for this endpoint... -RH
  http_get('posts/', {signed: false}, parameters)
end