JavaScript SDK Examples

View Source

examples / authentication

This example takes the user through Dropbox's API OAuth flow using Dropbox.getAuthenticationUrl() method [docs] and then uses the generated access token to list the contents of their root directory.

Authenticate

Once authenticated, it will use the access token to list the files in your root directory.

You have successfully authenticated. Below are the contents of your root directory. They were fetched using the SDK and access token.