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

Adds :data_type option to EventbriteClient #6

Merged
merged 1 commit into from
Jul 26, 2012
Merged

Adds :data_type option to EventbriteClient #6

merged 1 commit into from
Jul 26, 2012

Conversation

yrashk
Copy link
Contributor

@yrashk 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 pushed a commit that referenced this pull request Jul 26, 2012
Adds :data_type option to EventbriteClient init
@ryanj ryanj merged commit 73f5586 into ryanj:master Jul 26, 2012
@ryanj
Copy link
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
Copy link
Contributor Author

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
Copy link
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants