We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.
Forum Discussion
chainsbomb
2 years agoExplorer | Level 4
Solution for Dropbox API where I have a non-standard setup.
My app is single-page server-side javascript/HTML, but I don't use Node. This seems to mean that I can't just import {Dropbox} from 'dropbox' I am able to access use the chooser and saver by usin...
djschoch
Explorer | Level 3
Greg-DB,
Thank you SO MUCH for your help. This is exactly the jumpstart I needed. I fumbled a bit, but I now have a basic call working successfully. Your help is very much appreciated.
One last question (this is probably in the documentation somewhere; I apologize for being lazy at the moment): Can you show how to get a current access token, based on my appKey (and appSecret?)? Also, how long is the access token valid?
THANKS again,
-Dan-
Greg-DB
7 months agoDropbox Staff
djschoch Check out the example here to see how to process the OAuth app authorization flow with the Dropbox JavaScript SDK to get an access token.
Dropbox issues short-lived access tokens which are valid for a few hours. You can get the exact expiration information from the API when it returns the access token, e.g., it would be available in 'response.result.expires_in' in the getAccessTokenFromCode callback in that example.
You can find more information on the authorization functionality in the OAuth Guide and authorization documentation.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,875 PostsLatest Activity: 2 years agoIf 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!