This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I assume here that you have already done your oauth authentication with dropbox | |
// (maybe using everyauth) and you have the access_token and access_token_secret (which are per-user). | |
// You also need the consumer_key and consumer_secret values for your Dropbox API account (these should | |
// be part of you application configuration). | |
// Step 1: Create an oauth object (do this once and store it, you can use the same object over and over) | |
var OAuth= require('oauth').OAuth; | |
dropboxOAuth = new OAuth("https://api.dropbox.com/1/oauth/request_token", | |
"https://api.dropbox.com/1/oauth/access_token", |