Skip to content

adds drive_download_contents() method to client#7

Merged
ingmferrer merged 3 commits intoGearPlug:masterfrom
richardARPANET:master
Mar 10, 2020
Merged

adds drive_download_contents() method to client#7
ingmferrer merged 3 commits intoGearPlug:masterfrom
richardARPANET:master

Conversation

@richardARPANET
Copy link

@richardARPANET richardARPANET commented Jan 7, 2020

r = response.json()
else:
r = response.text
r = response.content
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this change the file contents returns as a str. When a file is downloaded as str (I tested an xlsx file), it will be corrupted. Changing to response.content returns bytes instead and the downloaded file opens correctly.

Richard O'Dwyer added 2 commits January 9, 2020 20:43
…owser (excel online) and drive attempts to update it at the same time
@ingmferrer ingmferrer merged commit 3476182 into GearPlug:master Mar 10, 2020
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