<?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: How to set clientIdentifier, using SwiftyDropbox in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/527790#M25587</link>
    <description>&lt;P&gt;Thanks, that seems to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I noticed the link to the documentation now works, so thanks for that as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One side question, I was looking through the documentation, but other than the example code, I couldn't find the actual api documentation for DropboxTransportClient (listing its Declaration, Parameters, etc.), I'm not sure if I just can't find it, or if its not there.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jun 2021 17:21:48 GMT</pubDate>
    <dc:creator>vewert</dc:creator>
    <dc:date>2021-06-18T17:21:48Z</dc:date>
    <item>
      <title>How to set clientIdentifier, using SwiftyDropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/527579#M25577</link>
      <description>&lt;P&gt;In the Java API, a clientIdentifier is set when creating a DbxRequestConfig object. I'm wondering, is there an equivalent in SwiftyDropbox? I was trying to search it myself, but it seem like the link (&lt;A href="http://dropbox.github.io/SwiftyDropbox/api-docs/latest/" target="_blank" rel="noopener"&gt;http://dropbox.github.io/SwiftyDropbox/api-docs/latest/&lt;/A&gt;&amp;nbsp;) to the SwiftyDropbox api docs is broken.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 17:37:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/527579#M25577</guid>
      <dc:creator>vewert</dc:creator>
      <dc:date>2021-06-17T17:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to set clientIdentifier, using SwiftyDropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/527583#M25578</link>
      <description>&lt;P&gt;Thanks for letting us know about the broken docs page! I'll ask the team to fix that up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, the equivalent of setting that custom identifier in the SwiftyDropbox SDK would be to set the "userAgent" parameter when making a "&lt;SPAN class="pl-en"&gt;DropboxTransportClient", like &lt;A href="https://github.com/dropbox/SwiftyDropbox#customizing-network-calls" target="_blank"&gt;seen here&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 18:08:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/527583#M25578</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-06-17T18:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to set clientIdentifier, using SwiftyDropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/527604#M25579</link>
      <description>&lt;P&gt;Thanks Greg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked at the sample. How do I create a DropboxTransportClient, if all I want to do is set the userAgent; can I set all the other parameters to nil, to get the default behaviour?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 20:00:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/527604#M25579</guid>
      <dc:creator>vewert</dc:creator>
      <dc:date>2021-06-17T20:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to set clientIdentifier, using SwiftyDropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/527618#M25580</link>
      <description>&lt;P&gt;Yes, those are optional so you can set them to nil, except for "accessToken", but it looks like you can just set that to an empty string, assuming you're using the standard authorization functionality such as authorizeFromControllerV2 and authorizedClient which will take care of that for you.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 20:44:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/527618#M25580</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-06-17T20:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to set clientIdentifier, using SwiftyDropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/527790#M25587</link>
      <description>&lt;P&gt;Thanks, that seems to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I noticed the link to the documentation now works, so thanks for that as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One side question, I was looking through the documentation, but other than the example code, I couldn't find the actual api documentation for DropboxTransportClient (listing its Declaration, Parameters, etc.), I'm not sure if I just can't find it, or if its not there.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 17:21:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/527790#M25587</guid>
      <dc:creator>vewert</dc:creator>
      <dc:date>2021-06-18T17:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to set clientIdentifier, using SwiftyDropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/527818#M25588</link>
      <description>&lt;P&gt;Yes, we got the docs back up. It looks like the DropboxTransportClient class in particular isn't being included in the documentation though. I'll see if we can get that done.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 18:40:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/527818#M25588</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-06-18T18:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to set clientIdentifier, using SwiftyDropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/751053#M32955</link>
      <description>&lt;P&gt;Hi, sorry to re-open this discussion, but it seems like this isn't working anymore after upgrading SwiftyDropbox to 10 (10.0.1). It seems like when using a custom&amp;nbsp;&lt;SPAN&gt;DropboxTransportClient, so I can set the user-agent, the access token doesn't get refreshed. After integrating with Dropbox, all my calls work fine, but if I don't use the app for awhile (4-5 hours), and then open the app again, I get a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;".tag" = "expired_access_token" error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I change my code, and call&amp;nbsp;DropboxClientsManager.setupWithAppKey() without passing a DropboxTransportClient, it seems to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I looked at the source code, and it seems there was a change to the code for the DropboxTranportClient&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/dropbox/SwiftyDropbox/commit/56174418e996d4f409467cb1a21b486279c9abd5#diff-a9fb3eb11f520d9c252ca6b5f5ff5a9e56075262094f04d3567c85968ffc8321" target="_self"&gt;https://github.com/dropbox/SwiftyDropbox/commit/56174418e996d4f409467cb1a21b486279c9abd5#diff-a9fb3eb11f520d9c252ca6b5f5ff5a9e56075262094f04d3567c85968ffc8321&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Which may cause this change of behaviour.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My code to create the DropboxTransportClient is as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let transportClient: DropboxTransportClientImpl = DropboxTransportClientImpl(
      accessToken: "",
      userAgent: userAgent,
      selectUser: nil)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 23:30:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/751053#M32955</guid>
      <dc:creator>vewert</dc:creator>
      <dc:date>2024-02-13T23:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to set clientIdentifier, using SwiftyDropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/751156#M32960</link>
      <description>&lt;P&gt;In order for the SDK to perform the refresh for you, to avoid the "expired_access_token" error, it will need a refresh token.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you let me know if you're currently using the standard authorization functionality (authorizeFromControllerV2), or if you're supplying an access token/refresh token yourself?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The standard authorization functionality should handle this automatically for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, can you show me how you're supplying the access token/refresh token? Please be sure to redact any access token or refresh token string itself though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 16:28:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/751156#M32960</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-02-14T16:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to set clientIdentifier, using SwiftyDropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/751273#M32962</link>
      <description>&lt;P&gt;Yes, I am using the standard authorization functionality (authorizeFromControllerV2) as in the sample code.&lt;/P&gt;&lt;P&gt;The difference between my code, and the sample code is in how a call `setupWithAppKey` inside the AppDelegate. In order to set the userAgent, I create an instance of transportClient:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let transportClient: DropboxTransportClientImpl = DropboxTransportClientImpl(
  accessToken: "",
  userAgent: userAgent,
  selectUser: nil)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then call:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DropboxClientsManager.setupWithAppKey("&amp;lt;APP_KEY&amp;gt;", transportClient: transportClient)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if I don't use the transportClient, and simply call:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DropboxClientsManager.setupWithAppKey("&amp;lt;APP_KEY&amp;gt;")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then the refresh token seems to work, and I don't get the expired token error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This used to&amp;nbsp;all work before I upgraded to SwiftyDropbox 10 (10.0.1), but now it doesn't, so I suspect there may have been a change in the DropboxTransportClientImpl initializer code.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 22:49:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/751273#M32962</guid>
      <dc:creator>vewert</dc:creator>
      <dc:date>2024-02-14T22:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to set clientIdentifier, using SwiftyDropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/751401#M32967</link>
      <description>&lt;P&gt;Thanks! We'll look into it and follow up here once we have any news on this.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 14:37:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/751401#M32967</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-02-15T14:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to set clientIdentifier, using SwiftyDropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/751428#M32970</link>
      <description>&lt;P&gt;Thanks, would it be helpful for me to log the issue in your GitHub repository (&lt;A href="https://github.com/dropbox/SwiftyDropbox/issues" target="_blank"&gt;https://github.com/dropbox/SwiftyDropbox/issues&lt;/A&gt;)?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 16:28:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/751428#M32970</guid>
      <dc:creator>vewert</dc:creator>
      <dc:date>2024-02-15T16:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to set clientIdentifier, using SwiftyDropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/751431#M32971</link>
      <description>&lt;P&gt;No, this forum thread is sufficient. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 16:36:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/751431#M32971</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-02-15T16:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to set clientIdentifier, using SwiftyDropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/754482#M33030</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1648"&gt;@vewert&lt;/a&gt; That should be fixed in &lt;A href="https://github.com/dropbox/SwiftyDropbox/releases/tag/10.0.3" target="_blank"&gt;the new v10.0.3 release&lt;/A&gt;. Please give that a try and let us know if you see any issues. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 20:55:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/754482#M33030</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-03-01T20:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to set clientIdentifier, using SwiftyDropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/755429#M33083</link>
      <description>&lt;P&gt;Thanks for the update&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;. I did some quick testing with version 10.0.3 and it seems to have fixed the problem with expired token.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 18:15:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-set-clientIdentifier-using-SwiftyDropbox/m-p/755429#M33083</guid>
      <dc:creator>vewert</dc:creator>
      <dc:date>2024-03-06T18:15:06Z</dc:date>
    </item>
  </channel>
</rss>

