Use the Dropbox SDK from Fuse.
Using fusepm
$ fusepm install https://github.com/bolav/fuse-dropbox
<Dropbox ux:Global="Dropbox" />
var j = require('local.js');
var db = require('Dropbox');
db.link(j.app_key, j.app_secret).then(function (s) {
console.log("We are linked " + s);
});
module.exports.app_key = "<app-key>";
module.exports.app_secret = "<app-secret>";
"Dropbox": {
"AppKey": "<app-key>"
}