Last active
August 29, 2015 14:21
-
-
Save nqd/20449730c217141d78c0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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