Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴

Aaron Acerboni AaronAcerboni

🌴
View GitHub Profile
@AaronAcerboni
AaronAcerboni / dropbox_oauth_requests.js
Created Aug 29, 2012 — forked from almost/dropbox_oauth_requests.js
How to make signed requests for Dropbox API in Node.JS using node-oauth (for Dan)
View dropbox_oauth_requests.js
// 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",