lib/pardot/http.rb in ruby-pardot-1.1.0 vs lib/pardot/http.rb in ruby-pardot-1.2.0

- old
+ new

@@ -11,13 +11,13 @@ rescue SocketError, Interrupt, EOFError, SystemCallError, Timeout::Error, MultiXml::ParseError => e raise Pardot::NetError.new(e) end - def post object, path, params = {}, num_retries = 0 + def post object, path, params = {}, num_retries = 0, bodyParams = {} smooth_params object, params full_path = fullpath object, path - check_response self.class.post(full_path, :query => params) + check_response self.class.post(full_path, :query => params, :body => bodyParams) rescue Pardot::ExpiredApiKeyError => e handle_expired_api_key :post, object, path, params, num_retries, e rescue SocketError, Interrupt, EOFError, SystemCallError, Timeout::Error, MultiXml::ParseError => e