Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add XML Parser when response format is XML #26

Open
cassiascheffer opened this issue Jan 8, 2020 · 0 comments
Open

Add XML Parser when response format is XML #26

cassiascheffer opened this issue Jan 8, 2020 · 0 comments

Comments

@cassiascheffer
Copy link
Contributor

cassiascheffer commented Jan 8, 2020

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}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant