Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
yvancoyaud
8 years agoHelpful | Level 6
Lire un fichier mp3 pour balise HTML <audio>
Bonjour,
Je voudrais savoir comment trouver l'URL d'un fichier mp3 de ma dropbox, pour la passer à la propritété .src d'une balise HTML audio.
<audio id="player" src="https://...."></audio>
...
- 8 years ago
Merci de votre réponse.
D'après ce que j'avais pu lire sur les forums, c'est effectivement ce que je pensais.
Mais voilà, si j'utilise cette méthode j'ai l'erreur suivante :
Javascript :
let dbx = new Dropbox.Dropbox({accessToken:'EVI0bxu9TpA ...'}); dbx.filesGetTemporaryLink ({'path': 'musiques/Calypso_Rose/Abatina.mp3'}) .then(function(rep) { console.log(rep) }) .catch(function (error) { console.error('Erreur fatale: ', error); })Erreur:
POST https://api.dropboxapi.com/2/files/get_temporary_link 400 (Bad Request) Erreur fatale: {error: "Error in call to API function "files/get_temporary…n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)'", response: Response, status: 400}Comment puis-je corriger cette erreur.
Merci,
YC
yvancoyaud
8 years agoHelpful | Level 6
Merci de votre réponse.
D'après ce que j'avais pu lire sur les forums, c'est effectivement ce que je pensais.
Mais voilà, si j'utilise cette méthode j'ai l'erreur suivante :
Javascript :
let dbx = new Dropbox.Dropbox({accessToken:'EVI0bxu9TpA ...'});
dbx.filesGetTemporaryLink ({'path': 'musiques/Calypso_Rose/Abatina.mp3'})
.then(function(rep) { console.log(rep) })
.catch(function (error) { console.error('Erreur fatale: ', error); })
Erreur:
POST https://api.dropboxapi.com/2/files/get_temporary_link 400 (Bad Request)
Erreur fatale: {error: "Error in call to API function "files/get_temporary…n])*|id:.*)|(rev:[0-9a-f]{9,})|(ns:[0-9]+(/.*)?)'", response: Response, status: 400}
Comment puis-je corriger cette erreur.
Merci,
YC
yvancoyaud
8 years agoHelpful | Level 6
J'ai trouvé d'où venait l'erreur.
Il manquait juste un slash au début du path
'path': '/musiques/...
Et tout fonctionne nickel !
Merci pour votre aide.
YC
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!