Skip to content

Instantly share code, notes, and snippets.

@nqd
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nqd/20449730c217141d78c0 to your computer and use it in GitHub Desktop.
Save nqd/20449730c217141d78c0 to your computer and use it in GitHub Desktop.
var Dropbox = require("dropbox");
// Browser-side applications do not use the API secret.
var client = new Dropbox.Client({
token: "your-token"
});
client.authenticate(function(error, client) {
if (error) {
return console.log(error);
}
client.makeUrl("user1.bin", function(error, status) {
if (error) {
return console.log(error); // Something went wrong.
}
console.log("File status ", status);
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment