This library depends on the Promise global which requires a polyfill (es6-promise) for unsupported browsers. It also requires that
fetch be passed into the constructor; we advise using the isomorphic-fetch library which supports fetch within both environments.
For a quick overview the below example will install the package and use it as a CommonJS module. For more alternative loading options please view our Getting started tutorial.
Install the SDK with npm
$ npm install --save dropbox
Include the Dropbox or DropboxTeam class to start making your API calls.
var fetch = ; // or another library of choice.var Dropbox = Dropbox;var dbx = accessToken: 'YOUR_ACCESS_TOKEN_HERE' fetch: fetch ;dbx;
See examples/ for working examples of how the SDK can be used in a few different environments.
Please see CONTRIBUTING.md for information on how to contribute, setup the development environment and run tests.
We will try to follow semver as close as possible. That means bug fixes will be patch releases (1.0.1 -> 1.0.2), additional functionality like new endpoints will be minor releases (1.0.1 -> 1.1.0) and breaking changes to both the library and the API endpoints it hits, will be major releases (1.0.1 -> 2.0.0).
This SDK will be taking the
dropbox package name on
npm from the legacy
SDK, that uses the old version of
the Dropbox API. This will bump the version number from
2.0.0, which should avoid breaking changes due to semver assumptions.