Skip to content

Misnamed parameter on requests #24

Description

@cghan-oktana

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions