def request(method, path, options, raw=false)
      # identify our request
      # @see: http://docs.disqus.com/help/52/
      options ||= {}
      options.merge!(:api_secret => self.api_secret) unless options.has_key?(:api_secret)
      response = connection(raw).send(method) do |request|
        case method
        when :get
          request.url(formatted_path(path), options)
        when :post
          request.path = formatted_path(path)
          request.body = options unless options.empty?
        end
      end
      raw ? response : response.body
    end
def request(method, path, options, raw=false)
      # identify our request
      # @see: http://docs.disqus.com/help/52/
      options ||= {}
      options.merge!(:api_secret => self.api_secret) unless options.has_key?(:api_secret)
      response = connection(raw).send(method) do |request|
        case method
        when :get
          request.url(formatted_path(path), options)
        when :post
          request.path = formatted_path(path)
          request.body = options unless options.empty?
        end
      end
      raw ? response : response.body
    end
Perform an HTTP request