Correcting documentation; to access the raw response object, you must use 'raw'.

This commit is contained in:
Adam Coddington 2013-05-18 22:50:17 -07:00
parent 870d9bc7e9
commit 6c801a50a4

View file

@ -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())
``` ```