cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

connect to dropbox in node

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
Highlighted

Re: connect to dropbox in node

Dropboxer
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.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?