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
qazimuneeb1
5 years agoExplorer | Level 3
Store Multiple Access Tokens
Hi. I am building an android app which uses dropbox api to connect to dropbox through auth flow and then upload files on dropbox, I want to store my access token for each account into the database so...
- 5 years ago
That returns the user ID from the authorization flow. The user ID does identify the particular Dropbox account and is stable for the account, so you can technically use that. Preferably though, you should use Account.accountId as returned by getCurrentAccount. That also uniquely identifies the Dropbox account and is stable. The account ID is recommended over the user ID.
qazimuneeb1
Explorer | Level 3
Thanks Greg! Looking forward to achieve this target :)
qazimuneeb1
5 years agoExplorer | Level 3
One thing more that where to call this method to get accountId?
- Greg-DB5 years agoDropbox Staff
To retrieve the account ID, you should call the getCurrentAccount method. There's an example of doing so here. You can make that call wherever/whenever you need in your app, e.g., when you need to get the account ID when first storing the access token, etc.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,885 PostsLatest Activity: 3 hours 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!