Skip to main content

This might be a simple question, but since i am new to python and Box-API, how can i download a file(mainly .PDF, .xlsx and .csv). I am using OAuth2 as authorization method.


 There are two primary methods available for downloading a file:


 


file.content()  # returns the file contents as `bytes`
file.download_to(writeable_stream) # write the file contents to a stream

Depending on what you want to do with the file contents, one of these should work for you.



Reply