


The request token is passed to getAuthorizeUrl to create a unique authorization URL to send the user to and, optionally, specify the website to return the user to after they finish granting access to your app. To do this, we'll send the user to the Dropbox website to allow your app access to their Dropbox account. With a request token in hand, it's time for the user to authorize our app. Session.getRequestToken(function(status, reply) ) User authentication and authorization We'll start by using the session object to get a request token via the getRequestToken SDK method. Now we're all set to start authenticating. Get your app key and secret from the Dropbox developer websiteĬonfig = require('./dropbox-config') // `sess` sould be your frameworks session object To create a dropbox session you need to pass in an object that contains appKey & appSecret it is best practise to place this object in a new module that you then require. Once you have your keys, we'll use them to access your Dropbox account and the Dropbox API. You can find these keys in the Setup tutorial or via the My Apps section of the Dropbox website. As described in the Getting Started guide, the app key and secret are used to authenticate a Dropbox session and must be included with every API call. The first thing you have to do is find your app key and secret pair. Thumbnails(path, size, callback) File Operations This is an alternative SDK for using the Dropbox API within node.js Installation $ npm install dropbox-sdk
