One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
rajshree1996
6 years agoExplorer | Level 3
connect to dropbox in node
// 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?
- 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.
About Discuss Dropbox Developer & API
Make connections with other developers804 PostsLatest Activity: 2 days ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!