Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Jenya Korolenko
6 years agoExplorer | Level 3
Can't get access token uses javascript fetch request
Hi everyone, l try to get access token uses javascript fetch in the next way:
fetch('https://api.dropboxapi.com/oauth2/token', {
method: 'POST',
code: AUTHORIZATION_CODE,
grant_type: 'a...
Greg-DB
Dropbox Community Moderator
6 years agocascadeCommons I don't see anything obviously wrong here, but I don't see where you're actually returning or reading the 'generated' value, or are handling any potential errors, so there may be an issue in the parts of the code that were omitted.
cascadeCommons
6 years agoExplorer | Level 4
let requestURL = generateSubmission();
Hey Greg-DB. I've included some more information.
The function I provided earlier is generateSubmission(). I've included how I called it above. My plan was for generateSubmission() to return the URL in string form so I could store it in the newly declared variable `requestURL`. Please let me know if you see anything wrong, any help would be greatly appreciated.
Thank you so much!
- Greg-DB6 years ago
Dropbox Community Moderator
cascadeCommons It's still not clear where the value actually gets returned. In any case, we've strayed pretty far from the original topic here though, so to avoid spamming the original poster, please open a new thread with all of the relevant code needed to reproduce the issue if you still need help with it.
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!