Curious about A, B, C, and D drives? Learn what they mean and how to use them effectively with Dropbox in this handy guide! - check it out now!
Forum Discussion
Franz37
8 years agoNew member | Level 2
version antérieure fichier introuvable avec option "historique étendu des versions"
Bonjour,
Je cherche à restaurer l'historique d'un fichier de 7 semaines. Il est introuvable, pourtant j'ai bien souscrit à l'option "historique étendu des versions"
Merci d'avance pour votre aide
Franz
Thank you for this additional guidance.
I could not make it work at first, but found a solution. For anyone else, new to making this kind of API calls and relying too much on abstracted calls with the SDK (like me), the data needs to be encoded before being passed to the body.
const data = { grant_type: 'refresh_token', refresh_token: refreshToken, client_id: clientId, client_secret: clientSecret, }; const response = await fetch(`https://api.dropboxapi.com/oauth2/token`, { method: 'POST', headers: { 'content-type': 'application/x-www-form-urlencoded', }, // Note this: the data needs to be encoded first! body: new URLSearchParams(data), }); console.log(await response.json());
Thanks again for your concern and patience!
2 Replies
Sort By
Replies have been turned off for this discussion
About Poser une question
Trouvez des réponses dans les conversations démarrées par d'autres utilisateurs. Si vous n'en trouvez aucune, posez une nouvelle question.
Need more support
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!