<?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: Downloading and uploading files from dropbox .net sdk using my own account in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-and-uploading-files-from-dropbox-net-sdk-using-my/m-p/724630#M32014</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1760714"&gt;@sisrael1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;..., so how can i implement a refresh token process without any interaction?&amp;nbsp;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1760714"&gt;@sisrael1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Without any interaction - impossible. Unfortunately, Dropbox doesn't provide a way to receive refresh token as it was for long lived access token (not yet at least). You need to perform one interaction, at least, either within the application or by hands - some initial (interactive) steps. You may take a look &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issue-in-generating-access-token/m-p/592667" target="_blank" rel="noopener"&gt;here&lt;/A&gt; of how you can get refresh token (there entire process is shown; you don't need the last steps, since they are implemented in SDK) and after that just initialize your Dropbox client object with that tokens and keys (not just access token only like you are doing right now).&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Oct 2023 14:36:24 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2023-10-26T14:36:24Z</dc:date>
    <item>
      <title>Downloading and uploading files from dropbox .net sdk using my own account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-and-uploading-files-from-dropbox-net-sdk-using-my/m-p/724609#M32013</link>
      <description>&lt;P&gt;Hi im new to developing with dropbox and im having a hard finding the following info. im using dropbox .net sdk to upload and download images from my own account i set up a little test using the generated access token from developer app portal, this token is short lived (starts with sl.) i've seen based on some question that dropbox no longer offers long lived tokens, so how can i implement a refresh token process without any interaction?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;heres the test code for refrence&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;try
        {
            var filePath = "PATH";
            var dbx = new DropboxClient("sl.TOKEN_HERE"); // Replace with your actual access token

            var response = dbx.Files.DownloadAsync(filePath).Result;

            if (response.Response.IsFile)
            {
                var fileContent = response.GetContentAsByteArrayAsync().Result;
               
                string base64String = Convert.ToBase64String(fileContent);
                return Ok(base64String);
            }
            else
            {
                // Handle the case where the response is not a file (e.g., it's a folder).
                return BadRequest("Requested item is not a file.");
            }
        }
        catch (Exception e)
        {
            throw new InternalServerException(e.Message);
        }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 14:29:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-and-uploading-files-from-dropbox-net-sdk-using-my/m-p/724609#M32013</guid>
      <dc:creator>sisrael1</dc:creator>
      <dc:date>2023-10-26T14:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading and uploading files from dropbox .net sdk using my own account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-and-uploading-files-from-dropbox-net-sdk-using-my/m-p/724630#M32014</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1760714"&gt;@sisrael1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;..., so how can i implement a refresh token process without any interaction?&amp;nbsp;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1760714"&gt;@sisrael1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Without any interaction - impossible. Unfortunately, Dropbox doesn't provide a way to receive refresh token as it was for long lived access token (not yet at least). You need to perform one interaction, at least, either within the application or by hands - some initial (interactive) steps. You may take a look &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issue-in-generating-access-token/m-p/592667" target="_blank" rel="noopener"&gt;here&lt;/A&gt; of how you can get refresh token (there entire process is shown; you don't need the last steps, since they are implemented in SDK) and after that just initialize your Dropbox client object with that tokens and keys (not just access token only like you are doing right now).&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 14:36:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-and-uploading-files-from-dropbox-net-sdk-using-my/m-p/724630#M32014</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-10-26T14:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading and uploading files from dropbox .net sdk using my own account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-and-uploading-files-from-dropbox-net-sdk-using-my/m-p/724634#M32015</link>
      <description>&lt;P&gt;Thank you for you're response i have read that post before asking my question, the difficulty im having is the following, im only using my own user account in dropbox to store images and its being done by my backend (c# web api) so this auth flow as described in that post needs to happen when and where exactly? i hope you understand my difficulty here from this poorly written reply&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 14:47:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-and-uploading-files-from-dropbox-net-sdk-using-my/m-p/724634#M32015</guid>
      <dc:creator>sisrael1</dc:creator>
      <dc:date>2023-10-26T14:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading and uploading files from dropbox .net sdk using my own account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-and-uploading-files-from-dropbox-net-sdk-using-my/m-p/724636#M32016</link>
      <description>&lt;P&gt;Hi again &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1760714"&gt;@sisrael1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Yes, I understood what you mean. &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;&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/1760714"&gt;@sisrael1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... so this auth flow as described in that post needs to happen when and where exactly? ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;At any moment before you're going to use your system (let's say right now would be fine). That flow needs to be performed a single time only and, as mentioned there, refresh token doesn't expire. So,... your system will be ready for use for... ever. &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; (or till revoke)&lt;/P&gt;&lt;P&gt;Hope this clarifies matter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: I forgot to mention that you can execute the commands wherever convenient for you (let's say on the machine you are posting now would be fine).&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 14:59:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-and-uploading-files-from-dropbox-net-sdk-using-my/m-p/724636#M32016</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-10-26T14:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading and uploading files from dropbox .net sdk using my own account</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-and-uploading-files-from-dropbox-net-sdk-using-my/m-p/724646#M32017</link>
      <description>&lt;P&gt;thank you i didnt get that part that its a one time action needed not every time i want to use dropbox&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 15:10:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-and-uploading-files-from-dropbox-net-sdk-using-my/m-p/724646#M32017</guid>
      <dc:creator>sisrael1</dc:creator>
      <dc:date>2023-10-26T15:10:42Z</dc:date>
    </item>
  </channel>
</rss>

