How to download a file from the box using Box API for Python
RéponduThis 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.
Vous devez vous connecter pour laisser un commentaire.
Commentaires
1 commentaire