You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

yvancoyaud's avatar
yvancoyaud
Helpful | Level 6
7 years ago

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> ...
  • yvancoyaud's avatar
    yvancoyaud
    7 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 &colon;

    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

     

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,911 PostsLatest Activity: 10 hours ago
333 Following

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!