<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SwiftyDropbox and support for multiple accounts in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-and-support-for-multiple-accounts/m-p/143756#M4602</link>
    <description>&lt;P&gt;Thanks for the feedback! We certainly should improve the documentation/tutorial to include information about using multiple accounts.&lt;/P&gt;
&lt;P&gt;Anyway, I believe Dropbox.authorizeFromController is meant for the use case where there's only a single account.&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;You can get all of the stored access tokens using&amp;nbsp;DropboxAuthManager.sharedAuthManager.getAllAccessTokens(), and construct a client using whichever one you want using&amp;nbsp;DropboxClient.init.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Feb 2016 03:19:41 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2016-02-19T03:19:41Z</dc:date>
    <item>
      <title>SwiftyDropbox and support for multiple accounts</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-and-support-for-multiple-accounts/m-p/143755#M4601</link>
      <description>&lt;P&gt;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).&lt;/P&gt;
&lt;P&gt;Typical single-user case which is perfectly handled by Dropbox class, as far as I can see, simply calls similar appropriate methods on DropboxAuthManager.&lt;/P&gt;
&lt;P&gt;My questions:&lt;/P&gt;
&lt;P&gt;1) Is Dropbox class created only for simplifying interface and can be not used at all in the project? (E.g. not making a call&amp;nbsp;setupWithAppKey(appKey) on app launch)&lt;/P&gt;
&lt;P&gt;2) DropboxAuthManager has a singleton property sharedAuthManager. Was it created only to support Dropbox class?&lt;/P&gt;
&lt;P&gt;3) Do you have any other advices for multiple accounts support?&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:35:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-and-support-for-multiple-accounts/m-p/143755#M4601</guid>
      <dc:creator>Aibek D.</dc:creator>
      <dc:date>2019-05-29T09:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: SwiftyDropbox and support for multiple accounts</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-and-support-for-multiple-accounts/m-p/143756#M4602</link>
      <description>&lt;P&gt;Thanks for the feedback! We certainly should improve the documentation/tutorial to include information about using multiple accounts.&lt;/P&gt;
&lt;P&gt;Anyway, I believe Dropbox.authorizeFromController is meant for the use case where there's only a single account.&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;You can get all of the stored access tokens using&amp;nbsp;DropboxAuthManager.sharedAuthManager.getAllAccessTokens(), and construct a client using whichever one you want using&amp;nbsp;DropboxClient.init.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 03:19:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-and-support-for-multiple-accounts/m-p/143756#M4602</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-02-19T03:19:41Z</dc:date>
    </item>
  </channel>
</rss>

