I have to develop a small daemon, using flask and Dropbox API, that downloads files from my Dropbox account to my local database.
It is my first contact with the Dropbox API.
So I am confused in the choice of the class that I should use:
Dropbox.dropbox
class or Dropbox.client
class?!
What is the difference between the two classes?!
and what the best use for each class?
Thank you
Asked
Active
Viewed 32 times
0

Greg
- 16,359
- 2
- 34
- 44
1 Answers
0
You should use the dropbox.Dropbox
class. That uses the current version of the Dropbox API, which is API v2.
The client
class is offered for backwards compatibility, and uses the deprecated API v1.

Greg
- 16,359
- 2
- 34
- 44
-
The probleme that i need sthg like this dbx.get_file(t) which is not found in dropbox.Dropbox class – hamza.hassine.supcom Mar 02 '17 at 13:47
-
You can use [`files_download`](https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.dropbox.Dropbox.files_download) to get the file data like that. – Greg Mar 02 '17 at 18:27