<?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: Dropbox .NET SDK - DropboxClient usage in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-NET-SDK-DropboxClient-usage/m-p/563540#M2278</link>
    <description>&lt;P&gt;The client will automatically perform the refresh process for you whenever needed, on any such call, so you do not need to dispose of your existing client.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Dec 2021 14:49:18 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2021-12-10T14:49:18Z</dc:date>
    <item>
      <title>Dropbox .NET SDK - DropboxClient usage</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-NET-SDK-DropboxClient-usage/m-p/563500#M2277</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working with Dropbox .Net v2 api from nuget (6.22.0) in a Windows Desktop application (.net core 3.1).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I successfully integrate the OAuth2 flow as recommends in documentation:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;A client-side Desktop app or mobile app that requires background access: Use the OAuth code flow with PKCE, with refresh tokens.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With given information I'm able to create the DropboxClient class:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Probe9_0-1639128267140.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/26556iA04EB2081923BA1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Probe9_0-1639128267140.png" alt="Probe9_0-1639128267140.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Documentations defines that the DropboxClient automatically refresh the access_token, but that happens on any type of API calls?&lt;/P&gt;&lt;P&gt;As example, when I perform a client.Files.DownloadAsync, before actually do it, is the access_token refreshed if expired?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the recommends usage of the client; create, perform a request then dispose, or; should it be a single instance and stay alive for the entire app life time?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Thanks in advance.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Ciao&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Dec 2021 09:44:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-NET-SDK-DropboxClient-usage/m-p/563500#M2277</guid>
      <dc:creator>Probe9</dc:creator>
      <dc:date>2021-12-10T09:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox .NET SDK - DropboxClient usage</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-NET-SDK-DropboxClient-usage/m-p/563540#M2278</link>
      <description>&lt;P&gt;The client will automatically perform the refresh process for you whenever needed, on any such call, so you do not need to dispose of your existing client.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 14:49:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Dropbox-NET-SDK-DropboxClient-usage/m-p/563540#M2278</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-12-10T14:49:18Z</dc:date>
    </item>
  </channel>
</rss>

