def run(&block)
      if block_given?
        set(:params, &block)
      end

      if post? and multipart?
        put_multipart_params_into_body
      else
        put_params_into_url
      end    
      
      request = RestClient::Request.execute(
         :method => http_method, 
         :url => url, 
         :headers => headers, 
         :payload => body
       )
       self.response = parse_response(request)
    end
def run(&block)
      if block_given?
        set(:params, &block)
      end

      if post? and multipart?
        put_multipart_params_into_body
      else
        put_params_into_url
      end    
      
      request = RestClient::Request.execute(
         :method => http_method, 
         :url => url, 
         :headers => headers, 
         :payload => body
       )
       self.response = parse_response(request)
    end
Send http request to Viddler API.