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
Tshaniii
2 years agoHelpful | Level 5
NodeJs application with Dropbox
Hi,
I am developing a Nodejs application, with a react frontend and MySQL database. So this database will store information about the documents in the dropbox folders. (the documents table with attribute folders and etc.) So in my app I am controlling the uploading, editing, moving, signing document. At first it will be uploaded by someone so the database record will be made and then the rest of the actions too will be available from the frontend. What is the easy way to do. Are there any similar work?
And if i give the access token to the people who login to the app is it ok?
I can't offer help with React itself, as that's not made by Dropbox, so I suggest referring to the React documentation/support resources for help with that.
- Greg-DBDropbox Staff
If you're using Node.js and need to interact with the Dropbox API, we recommend using the official Dropbox API v2 JavaScript SDK, which supports Node.js. You can find sample code for that here.
Note though that you should not be sharing access tokens with other users. The API was designed with the intention that each user would link their own Dropbox account, receiving their own access token(s), in order to interact with their own files. While it is technically possible to share an access token and always connect to just one account for all users, we do not officially support this, for various technical and security reasons.
- TshaniiiHelpful | Level 5
Thank you Greg!. May I know how i can enable a user who logs in to the web application (nodejs app) using their email, at the same time get an access token for their email. Or continue woking in the nodejs app with files using the email address.
- Greg-DBDropbox Staff
For information on how apps can use the OAuth app authorization flow to have end-users authorize an app to access their accounts, please read the OAuth Guide.
To see how to use the JavaScript SDK for this, check out the examples included with the SDK.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,912 PostsLatest Activity: 3 months 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!