cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Learn more about how Connie, a member of the Community, uses 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

Re: connect to dropbox in node

Greg-DB
Dropboxer

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.

Poll
Are you starting new work habits this year?
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?