Skip to content

Add XML Parser when response format is XML #26

@cassiascheffer

Description

@cassiascheffer

The reporting API currently requests a response in JSON, but if we submit bat authentication data, we get an error message in XML. Parse this response into a hash and return it to the user.

Currently, the error is raised here:

else raise Bambora::Client::Error, "Unknown Content Type: #{content_type}. Response Body: #{response.body}"

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