pardot / ruby-pardot

A Pardot API client written in Ruby
http://developer.pardot.com
32 stars 78 forks source link

Misnamed parameter on requests #24

Open cghan-oktana opened 8 years ago

cghan-oktana commented 8 years ago

From Pardot's API documentation, the format parameter is used to set the API data format (xml or json), but currently ruby-pardot is setting it wrong:

def initialize email, password, user_key
  @email = email
  @password = password
  @user_key = user_key

  @format = "simple"
end

as simple is a value used for response format, in which case the output parameter should be used.

Also the documentation needs to be corrected: Output formats