cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

connect to dropbox in node

connect to dropbox in node

rajshree1996
Explorer | Level 3
// connect with the help of developer token
function DropboxConnect() {
dropbox = DropboxV2Api.authenticate({
token: CONSTANTS.get('DBX_ACCESS_TOKEN')
});
}

 

DropboxConnect.prototype.getPreviewLink = () => {
 dropbox({
resource: 'sharing/create_shared_link_with_settings',
parameters: {
path: "/test2/img1.png"
}
}, (err, result, response) => {
if (err) {
console.log(err);
}
console.log('file link folder', result.url);
return result
})
}
connection like this. 
but when I am calling preview link it is not waiting for the dropbox call to get finished.
Is this the wrong way to connect?
1 Reply 1

Greg-DB
Dropbox Staff

Based on the code you shared, it looks like you're using this third party dropbox-v2-api library. Since that's made by a third party, we can't provide support for it. You may wish to refer to the documentation for it or open an issue there for help using it.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?