Correcting documentation; to access the raw response object, you must use 'raw'.
This commit is contained in:
parent
870d9bc7e9
commit
6c801a50a4
1 changed files with 1 additions and 1 deletions
|
@ -169,5 +169,5 @@ Or, if you're downloading a particularly large file, you may want to use the `st
|
||||||
```python
|
```python
|
||||||
>>> download = api.files['com~apple~Notes']['Documents']['big_file.zip'].open(stream=True)
|
>>> download = api.files['com~apple~Notes']['Documents']['big_file.zip'].open(stream=True)
|
||||||
>>> with open('downloaded_file.zip', 'wb') as opened_file:
|
>>> with open('downloaded_file.zip', 'wb') as opened_file:
|
||||||
opened_file.write(download.read())
|
opened_file.write(download.raw.read())
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue