Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Aibek D.
9 years agoNew member | Level 1
SwiftyDropbox and support for multiple accounts
We're migrating from Dropbox iOS SDK to SwiftyDropbox and we need to support a vital feature: support for multiple accounts. There's not much documentation about that (none, actually).
Typical sing...
Greg-DB
Dropbox Community Moderator
9 years agoThanks for the feedback! We certainly should improve the documentation/tutorial to include information about using multiple accounts.
Anyway, I believe Dropbox.authorizeFromController is meant for the use case where there's only a single account.
If you need multiple accounts, you should use DropboxAuthManager.sharedAuthManager.authorizeFromController and DropboxAuthManager.sharedAuthManager.handleRedirectURL. You will always need to supply your app key though, whether or not you want to link one or many accounts.
You can get all of the stored access tokens using DropboxAuthManager.sharedAuthManager.getAllAccessTokens(), and construct a client using whichever one you want using DropboxClient.init.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!