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
SDK javascript : Tester la validité de la clé
Bonjour,
Pour accèder a mes fichiers Dropbox, je créé l'objet dbx comme suis:
dbx = new Dropbox.Dropbox({accessToken: DROPBOXAPIKEY});
dbx à toujours une valeur, même si la clé n'est pas...
Greg-DB
Dropbox Community Moderator
8 years agoUn jeton d'accès peut être révoqué à distance à tout moment, vous devez donc effectuer un appel API réel pour vérifier s'il est toujours valide.
Je recommande d'utiliser usersGetCurrentAccount pour cela, car il n'a aucun effet secondaire.
---
S'il vous plaît excusez nos traductions. Nos traductions ont été créées en utilisant un traducteur en ligne. Nous aimerions soutenir toutes les langues, mais nous ne sommes pas équipés pour le faire. Voici la version anglaise:
---
Please excuse our translations. Our translations were created using an online translator. We'd like to support every language, but we're not currently equipped to do so. Here is the English version:
---
An access token can be revoked remotely at any time, so you need to make an actual API call to check if it's currently still valid.
I recommend using usersGetCurrentAccount for that, since it doesn't have any side effects.
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!