Skip to content

Creating a Dropbox Access Token

kbremner edited this page Sep 11, 2014 · 1 revision

Overview

Dropbox allows an access token to be generated for an account to provide access to the API without having to go through the full OAuth flow. The grunt-dropbox task uses a token to access the API, so this page outlines how to generate that token.

Create an Application

  1. Go to https://www.dropbox.com/developers/apps and sign in with your dropbox account
  2. Click the create app button in the top right hand corner of the screen
  3. Choose Dropbox API app
  4. Choose Files and datastores
  5. Choose Yes for limiting access to only files created by the application (this is optional, either choice will work)
  6. Enter a suitable name (i.e. For Grunt) and click Create app

Generate Access Token

  1. Go to the settings page for the new application, under the App Console section
  2. On the settings page for the new application, scroll down and click the generate token button
  3. Copy the generated token in to a suitable location so it can be used in the task

The generated access token should be kept secret, i.e. not committed to a repository. If using Travis CI, it is recommended that you store it in a [secure environment variable](http://docs.travis-ci.com/user/environment-variables/#sts=Secure Variables)

Clone this wiki locally