Warning: API v1 has been deprecated. Learn more.

Install Core API SDKs

To make things as easy as possible, we have several platform SDKs you can import into your development environment to get up and running quickly. The SDKs contain platform-specific libraries that wrap the raw HTTP calls to the Dropbox API. They are designed to shorten the distance between your application and integrating Dropbox.

Python SDK

Download and uncompress the Python SDK. To install the dropbox module and any dependencies, run the setup script (you may need sudo).

python setup.py install

Alternatively, you can use pip to automatically download and install the module.

pip install dropbox

That's it. Once you import the dropbox module into your app, you'll be able to use all the Core API methods.

Example scripts

For examples of how to use the SDK, explore the scripts in the example folder:

  • cli_client.py is a basic command line interface for your Dropbox.
  • flask_app/simple_dropbox_app.py is a web app that takes you through the OAuth 2 flow.

To get these examples running, you'll need to edit each script and enter your app key and secret where indicated. Also make sure that the access type is set to app_folder or dropbox as configured for your app.