Adds :data_type option to EventbriteClient #6

Merged
merged 1 commit into from Jul 26, 2012

Projects

None yet

2 participants

@yrashk
Contributor
yrashk commented Jul 20, 2012

In some cases I need to be able to get the XML body of the response (I need to store those for further XPath processing), therefore I needed to add an option to specify data_type manually. By default it will use json so it doesn't change default behaviour.

@ryanj ryanj merged commit 73f5586 into ryanj:master Jul 26, 2012
@ryanj
Owner
ryanj commented Jul 26, 2012

This change looks good, but you may have trouble getting the original response XML back from HTTParty, which automatically converts the result into a local object.

@yrashk
Contributor
yrashk commented Jul 26, 2012

This already works for me, I do get the raw XML response (it retains the body of the response)

@ryanj
Owner
ryanj commented Jul 26, 2012

Ah, great - thanks for contributing!

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