Module: Blogger::GetPosts

Included in:
Configuration
Defined in:
lib/blogger/post.rb

Instance Method Summary collapse

Instance Method Details

#get_blogpostsObject



7
8
9
10
# File 'lib/blogger/post.rb', line 7

def get_blogposts
  response = HTTP.get("https://www.googleapis.com/blogger/v3/blogs/#{blog_id}/posts?maxResults=#{@max_result}&key=#{key}")
	@json_response = JSON.parse(response.to_s)
end