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

Pr response format #33

Merged
merged 3 commits into from Aug 25, 2014
Merged

Pr response format #33

merged 3 commits into from Aug 25, 2014

Conversation

ssimono
Copy link
Contributor

@ssimono ssimono commented Jul 16, 2014

To avoid having to handle JSON or XML response format according to document version, I added a xml2json conversion in request method, called only if JSON parsing fails.

This solved for me all problems I see in #29 discussion, although this may not be the best workaround...

Simon Alfassa added 3 commits July 16, 2014 15:03
It appears from a raw log of entry object that the property name is 'gs:cell'
Google Spreadsheet services may return an empty object if when asked for JSON format (alt=json in url)
Try to parse JSON output in request method, and then try to parse it as XML if the JSON attempt failed
Should solve jpillora#29
@q2dg q2dg mentioned this pull request Aug 25, 2014
jpillora added a commit that referenced this pull request Aug 25, 2014
@jpillora jpillora merged commit b1eeb8c into jpillora:stable Aug 25, 2014
@jpillora
Copy link
Owner

merged and published 0.2.7

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.

None yet

2 participants