Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
find-bijan
9 years agoExplorer | Level 4
Javascript SDK - SharingSharedLinkSettings
I'm developing a beat selling website for a producer and decided to use Dropbox as a digital download file storage. The producer will be able to send download links automatically and manually to thei...
- 9 years ago
It looks like there a few small things to fix in your code:
- the parameters should be passed in one dict in a single argument
- you do need the nested 'settings' key
- you need to provide the date in the "%Y-%m-%dT%H:%M:%SZ" formatSo, it should look like this:
dbx.sharingCreateSharedLinkWithSettings({path: '/allherdemo.mp3', settings: {expires: "2017-12-10T00:00:00Z"}}) .then(function(response) { console.log(response); }) .catch(function(error) { console.log(error); });
Greg-DB
Dropbox Community Moderator
9 years agoIt looks like there a few small things to fix in your code:
- the parameters should be passed in one dict in a single argument
- you do need the nested 'settings' key
- you need to provide the date in the "%Y-%m-%dT%H:%M:%SZ" format
So, it should look like this:
dbx.sharingCreateSharedLinkWithSettings({path: '/allherdemo.mp3', settings: {expires: "2017-12-10T00:00:00Z"}})
.then(function(response) {
console.log(response);
})
.catch(function(error) {
console.log(error);
});About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!