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