<?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: Xcode swiftydropbox setup in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734754#M32452</link>
    <description>&lt;P&gt;Hey &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp;! I tried building this today and had a few questions if you're know the answers,&lt;BR /&gt;&lt;BR /&gt;-When you say "replace" the refreshing process, what do you mean exactly?&amp;nbsp;&lt;BR /&gt;-Where would I use the app secret? Would this only be in the beta 10.0.1?&lt;BR /&gt;-Do I use the DropboxTransportClient?&lt;BR /&gt;-Is the initial call, dropbox = DropboxClient(key,secret,refreshtoken)? Then use dropbox to call api?&lt;BR /&gt;&lt;BR /&gt;Thank you for all the help !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Dec 2023 19:20:46 GMT</pubDate>
    <dc:creator>whats</dc:creator>
    <dc:date>2023-12-05T19:20:46Z</dc:date>
    <item>
      <title>Xcode swiftydropbox setup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734386#M32442</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone been able to set up Swiftydropbox without any user prompt ? I dont know the order or what needs to be called. I don't want the user to have to set up any login. Any quick breakdowns on the process for me to use a refresh key and app key in order to get the access token without a user prompt would be amazing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 15:45:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734386#M32442</guid>
      <dc:creator>whats</dc:creator>
      <dc:date>2023-12-04T15:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode swiftydropbox setup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734395#M32443</link>
      <description>&lt;P&gt;It's not possible to skip the app authorization flow and gain access to the end-user's account. In order for the app to access the user's account, the user needs to grant the app access to their account. This only needs to be done manually once per app-account pair.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 16:07:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734395#M32443</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-12-04T16:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode swiftydropbox setup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734397#M32444</link>
      <description>&lt;P&gt;I dont want to gain access to their account, I want to use my account refresh token and app key. Is this possible ?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 16:16:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734397#M32444</guid>
      <dc:creator>whats</dc:creator>
      <dc:date>2023-12-04T16:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode swiftydropbox setup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734398#M32445</link>
      <description>&lt;P&gt;The API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files. While it is technically possible to always connect to just one account for all users, we do not officially support this, for various technical and security reasons.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 16:18:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734398#M32445</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-12-04T16:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode swiftydropbox setup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734401#M32446</link>
      <description>&lt;P&gt;Absolutely understandable, would you be able to direct me on this flow?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 16:29:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734401#M32446</guid>
      <dc:creator>whats</dc:creator>
      <dc:date>2023-12-04T16:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode swiftydropbox setup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734404#M32447</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1777065"&gt;@whats&lt;/a&gt;, you can take a look &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issue-in-generating-access-token/m-p/592921/highlight/true#M27586" target="_blank" rel="noopener"&gt;here&lt;/A&gt; how you can perform OAuth by hands and use the refresh token in your code (you'll need app secret too by the way).&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 16:36:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734404#M32447</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-12-04T16:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode swiftydropbox setup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734411#M32448</link>
      <description>&lt;P&gt;Hey thank you so much! What does your code look like in xcode once you have these parameters? What are you calling?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 16:44:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734411#M32448</guid>
      <dc:creator>whats</dc:creator>
      <dc:date>2023-12-04T16:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode swiftydropbox setup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734454#M32449</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1777065"&gt;@whats&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... What does your code look like in xcode once you have these parameters? What are you calling?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The code anywhere looks exactly like you would code it, nothing else. There is no a single way to do it - it's matter of design decision. If you want to stick as much as possible to the Dropbox Swift SDK, you should use PKCE version of what I posted (i.e. not exactly the same) - Dropbox Swift SDK doesn't support app secret. In such a case (PKCE usage) you need to implement &lt;A title="A Dropbox access token" href="https://github.com/dropbox/SwiftyDropbox/blob/master/Source/SwiftyDropbox/Shared/Handwritten/OAuth/OAuth.swift#L491" target="_blank" rel="noopener"&gt;DropboxAccessToken&lt;/A&gt; object yourself and pass it further on &lt;A title="Initialize a client with an `DropboxAccessToken`" href="https://github.com/dropbox/SwiftyDropbox/blob/master/Source/SwiftyDropbox/Shared/Handwritten/DropboxClient.swift#L49" target="_blank" rel="noopener"&gt;client object initialization&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;To avoid PKCE you need to re-implement (replace) &lt;A title="Refreshes a (short-lived) access token for a given DropboxAccessToken" href="https://github.com/dropbox/SwiftyDropbox/blob/master/Source/SwiftyDropbox/Shared/Handwritten/OAuth/OAuth.swift#L439" target="_blank" rel="noopener"&gt;refreshing process&lt;/A&gt; (adding app secret there).&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 18:05:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734454#M32449</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-12-04T18:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode swiftydropbox setup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734754#M32452</link>
      <description>&lt;P&gt;Hey &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp;! I tried building this today and had a few questions if you're know the answers,&lt;BR /&gt;&lt;BR /&gt;-When you say "replace" the refreshing process, what do you mean exactly?&amp;nbsp;&lt;BR /&gt;-Where would I use the app secret? Would this only be in the beta 10.0.1?&lt;BR /&gt;-Do I use the DropboxTransportClient?&lt;BR /&gt;-Is the initial call, dropbox = DropboxClient(key,secret,refreshtoken)? Then use dropbox to call api?&lt;BR /&gt;&lt;BR /&gt;Thank you for all the help !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 19:20:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734754#M32452</guid>
      <dc:creator>whats</dc:creator>
      <dc:date>2023-12-05T19:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode swiftydropbox setup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734780#M32453</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1777065"&gt;@whats&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;BR /&gt;-When you say "replace" the refreshing process, what do you mean exactly?&amp;nbsp;&lt;BR /&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@D88F213CAFB196B6AB70612B08AD9D31/emoticons/1f601.png" alt=":beaming_face_with_smiling_eyes:" title=":beaming_face_with_smiling_eyes:" /&gt; Yeah... Maybe I said it too.. "hard". That's why I clarified: "adding app secret". "replace" here means edit the algorithm, no so much actual replace. This results from, as I already said, application secret is NOT supported in Dropbox Swift SDK (don't ask me why). It's supported by API itself (as you probably already know) and most of the other Dropbox SDKs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1777065"&gt;@whats&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;BR /&gt;-Where would I use the app secret? Would this only be in the beta 10.0.1?&lt;BR /&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No, it's not related to any particular version, but rather all of them (or that what you're using).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1777065"&gt;@whats&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;BR /&gt;-Do I use the DropboxTransportClient?&lt;BR /&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hm..&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; To be honest, I'm not sure what you mean here. You will always use that class, but you don't need to do it explicitly. It's just a internal class. If needed, clarify what you mean.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1777065"&gt;@whats&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;BR /&gt;-Is the initial call, dropbox = DropboxClient(key,secret,refreshtoken)? Then use dropbox to call api?&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt; As far as I know there is no such an init call (might be convenient for many users, but...). The refresh token itself is part of the &lt;A title="A Dropbox access token" href="https://github.com/dropbox/SwiftyDropbox/blob/master/Source/SwiftyDropbox/Shared/Handwritten/OAuth/OAuth.swift#L491" target="_blank" rel="noopener nofollow noreferrer"&gt;DropboxAccessToken&lt;/A&gt; that you need to pass (you don't need to handle/pass it in addition). App key is part of the app configuration (doesn't need to pass the refresh token in addition). You can add app secret to the configuration in the same way as done already for the app key and use it further in the updated refreshing (again in the same way as app key is used there - the only change needed there).&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 20:40:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734780#M32453</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-12-05T20:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode swiftydropbox setup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734839#M32454</link>
      <description>&lt;P&gt;Thank you again for the detailed reply! I guess I am lost to which part needs the app secret, I was unable to locate where I could pass it&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 01:57:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734839#M32454</guid>
      <dc:creator>whats</dc:creator>
      <dc:date>2023-12-06T01:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode swiftydropbox setup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734841#M32455</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1777065"&gt;@whats&lt;/a&gt;, If it's so hard for you to add support for app secret, then perform OAuth flow using PKCE (as I mentioned it as a variant before). In such a way you wouldn't need app secret and can use Dropbox Swift SDK as is (without change). You don't need to implement such a flow in the same language. Throughout the forum and other SDKs are lot of examples you can "hire". For instance take a look &lt;A title="How can a script or app get a sharable dropbox link" href="https://www.dropboxforum.com/t5/Create-upload-and-share/How-can-a-script-or-app-get-a-shareable-Dropbox-link/m-p/680928/highlight/true#M68463" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. It's a Python script that you can perform OAuth on (it uses PKCE). Once you authenticate yourself, get the saved refresh token and use it. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; In such a case only app key would be needed - something Dropbox Swift SDK supports. That's it.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: Keep in mind that providing this application to somebody else will let other person access to your account - something potentially dangerous for your data - take care.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 02:14:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734841#M32455</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-12-06T02:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode swiftydropbox setup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734940#M32456</link>
      <description>&lt;P&gt;I have performed the Oauth and have the refresh key, my implementation currently isnt working. I assume its an authentication issue, is there any way to have the http request errors post to console when testing the app so that I can see what error I am running into?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 11:59:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/734940#M32456</guid>
      <dc:creator>whats</dc:creator>
      <dc:date>2023-12-06T11:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode swiftydropbox setup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/735013#M32461</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1777065"&gt;@whats&lt;/a&gt; The SwiftyDropbox SDK doesn't offer a way to print out the raw HTTP request/response, but you should be able to check the `error` for any given call, e.g., as shown in the `response` handler in &lt;A href="https://github.com/dropbox/SwiftyDropbox#rpc-style-request" target="_blank" rel="noopener"&gt;the examples here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 14:41:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/735013#M32461</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-12-06T14:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode swiftydropbox setup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/735083#M32466</link>
      <description>&lt;DIV&gt;Hey&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp; would this be the right approach? I would then call client.upload for a rough example. I have the manually obtained refreshToken and appKey&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;class &amp;lt;CLASSNAME&amp;gt;: TransportClient{&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;private var client:DropboxClient&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;init(){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;client=DropboxClient(appKey:"&amp;lt;APPKEY&amp;gt;",refreshToken:"&amp;lt;REFRESHTOKEN&amp;gt;")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;extension DropboxClient{&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;public convenience init(appKey:"&amp;lt;APPKEY&amp;gt;",refreshToken:"&amp;lt;REFRESHTOKEN&amp;gt;"){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;let transportClient=DropboxTransportClientImpl(transportClient:transportClient:)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;self.init(transportClient:transportClient)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;extension DropboxTransportClientImpl{&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;public convenience init(appKey:"&amp;lt;APPKEY&amp;gt;",refreshToken:"&amp;lt;REFRESHTOKEN&amp;gt;"){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;let oauthManager=DropboxOAuthManager(appKey:"&amp;lt;APPKEY&amp;gt;",secureStorageAccess: SecureStorageAccesDefaultImpl.init())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var dropboxToken=DropboxAccessToken(accessToken:"",uid:"",refreshToken:"&amp;lt;REFRESHTOKEN&amp;gt;")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;oauthManager.refreshAccessToken(dropboxToken,scopes:[],queue:nil,completion:{_in})&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;let accessTokenProvider=ShortLivedAccessTokenProvider(token:dropboxToken,tokenRefresher:oauthManager)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;self.init(accessTokenProvider:accessTokenProvider,selectUser:nil,pathRoot:nil)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Dec 2023 19:46:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/735083#M32466</guid>
      <dc:creator>whats</dc:creator>
      <dc:date>2023-12-06T19:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode swiftydropbox setup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/735127#M32467</link>
      <description>&lt;P&gt;Hm..&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; Once you have refresh token using PKCE (you didn't mention but I suppose you used PKCE since it's mandatory for skipping app secret), would be easier just to call something like:&lt;/P&gt;&lt;PRE&gt;import SwiftyDropbox

let token = DropboxAccessToken(accessToken: "", uid: "",
                               refreshToken: "&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;your&lt;/SPAN&gt; &lt;SPAN class=""&gt;refresh&lt;/SPAN&gt; &lt;SPAN class=""&gt;token&lt;/SPAN&gt; &lt;SPAN class=""&gt;here&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;",
                               tokenExpirationTimestamp: ("0" as TimeInterval))
let client = DropboxClient(accessToken: token,
                   dropboxOauthManager: DropboxOAuthManager.sharedOAuthManager)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;... and use the client further on as in all examples. It's simpler. Isn't it? 🧐 The above code is just an illustration. You should have initialized the SDK already before running above code - see again the referred example (&lt;A title="Initialize" href="https://github.com/dropbox/SwiftyDropbox/tree/master#initialize-a-dropboxclient-instance" target="_blank" rel="noopener"&gt;where the app key goes&lt;/A&gt;)!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: While you use PKCE, you don't need to change anything in SDK itself. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 23:18:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/735127#M32467</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-12-06T23:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode swiftydropbox setup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/735365#M32473</link>
      <description>&lt;P&gt;Hmmm, I tried to implement these three things and seem to have made it worse. It now crashes as soon as it launches with the Termination Reason: Namespace SIGNAL, Code 4 Illegal instruction:4&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 17:01:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/735365#M32473</guid>
      <dc:creator>whats</dc:creator>
      <dc:date>2023-12-07T17:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode swiftydropbox setup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/735371#M32474</link>
      <description>&lt;P&gt;This means that your (Intel) processor tries access something uninitialized (most probably). Did you initialize your SDK in advance, as I noted? If not, DropboxOAuthManager.sharedOAuthManager points to nowhere! Something that likely be reason for such signal.&lt;/P&gt;&lt;P&gt;Of course might be something else too. You can investigate where this happens. 🙋 Try debug it!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 17:23:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/735371#M32474</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-12-07T17:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Xcode swiftydropbox setup</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/735382#M32475</link>
      <description>&lt;P&gt;Interesting! Thank you for all the help so far, I was thinking that I perhaps didnt play the initialization in the correct spot. I will investigate this further !&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 17:35:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Xcode-swiftydropbox-setup/m-p/735382#M32475</guid>
      <dc:creator>whats</dc:creator>
      <dc:date>2023-12-07T17:35:40Z</dc:date>
    </item>
  </channel>
</rss>

