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 their clients. I know I can not make individual shared links for everyone that buys a beat so I'll be using one shared link by limiting access to the link and expiring each active link every 10 days. The issue I'm running in to is the inability to set the expiration settings from my code. The link is created but the expiration settings are not.
I've tried "{settings: {expires: "date"}}" and other combinations as well as many input formats but I just can't find the right syntax for the object. The code below was my final try before this post - I know it's the furthest thing from correct but I literally tried everything I could imagine. I'd appreciate the help, thanks
dbx.sharingCreateSharedLinkWithSettings({path: '/allherdemo.mp3'},{expires:"12/10/2017"})
.then(function(response) {
console.log(response);
})
.catch(function(error) {
console.log(error);
});