Reputation: 355
I am trying to use Python 3.4 to upload files in dropbox. I can successfully upload files to dropbox. But I need to know how files inside a Dropbox folder can be read. For ex: if there are text and csv files inside a dropbox folder, then I need to read the contents of those file using Python Dropbox API v2?
Upvotes: 2
Views: 9503
Reputation: 16930
[Cross-linking for reference: https://github.com/dropbox/dropbox-sdk-python/issues/89 ]
You can use the files_download
methods to download files from Dropbox:
The examples use the Python SDK file_download
methods here:
https://github.com/dropbox/dropbox-sdk-python/blob/master/example/updown.py#L158 https://github.com/dropbox/dropbox-sdk-python/blob/master/example/back-up-and-restore/backup-and-restore-example.py#L55
Upvotes: 2