Class: DiandianOAuth::API::Interface::Posts
- Defined in:
- lib/diandian_oauth/api/interface.rb
Overview
BlogFollowers
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#request_url(params = {}) ⇒ Object
218 219 220 221 222 223 224 225 226 227 |
# File 'lib/diandian_oauth/api/interface.rb', line 218 def request_url params={} blog_cname = params[:blogCName] blog_uuid = params[:blogUuid] raise ParamIsRequiredError.new("blogCName or blogUuid is required for interface #{self.class.name}") unless blog_cname || blog_uuid path = "/blog/#{blog_cname||blog_uuid}/posts" if params[:type] path = path + "/#{type}" end API.url_for path end |