<?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 upload file on dropbox by java in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-file-on-dropbox-by-java/m-p/635486#M29330</link>
    <description>&lt;P&gt;Hi all&lt;/P&gt;
&lt;P&gt;I am working on creating a simple desktop program in Java, and I want to upload files via this program to Dropbox, but the problem is that the access token has a short life (temporary), how can I make the access token have a long life, or if I can use the App key and App secret?&lt;/P&gt;
&lt;P&gt;I need a very simple solution like a function or a java example.&lt;/P&gt;
&lt;P&gt;Thanks for any help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Nov 2022 09:32:46 GMT</pubDate>
    <dc:creator>Musa2</dc:creator>
    <dc:date>2022-11-10T09:32:46Z</dc:date>
    <item>
      <title>upload file on dropbox by java</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-file-on-dropbox-by-java/m-p/635486#M29330</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;
&lt;P&gt;I am working on creating a simple desktop program in Java, and I want to upload files via this program to Dropbox, but the problem is that the access token has a short life (temporary), how can I make the access token have a long life, or if I can use the App key and App secret?&lt;/P&gt;
&lt;P&gt;I need a very simple solution like a function or a java example.&lt;/P&gt;
&lt;P&gt;Thanks for any help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 09:32:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-file-on-dropbox-by-java/m-p/635486#M29330</guid>
      <dc:creator>Musa2</dc:creator>
      <dc:date>2022-11-10T09:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: upload file on dropbox by java</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-file-on-dropbox-by-java/m-p/635497#M29331</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1590102"&gt;@Musa2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;I need a very simple solution like a function or a java example.&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/1590102"&gt;@Musa2&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Take a look &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/main/examples/examples/src/main/java/com/dropbox/core/examples/account_info/AccountInfoExample.kt" target="_blank" rel="noopener"&gt;here&lt;/A&gt; for a example.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 18:01:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-file-on-dropbox-by-java/m-p/635497#M29331</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-11-09T18:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: upload file on dropbox by java</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-file-on-dropbox-by-java/m-p/635751#M29337</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1590102"&gt;@Musa2&lt;/a&gt; As shown in the example Здравко linked to, you should use a DbxCredential if you need long-term access. The DbxCredential should contain a refresh token, which the SDK will use to automatically retrieve new short-lived access tokens whenever needed, without manual user interaction. Refer to &lt;A href="https://github.com/dropbox/dropbox-sdk-java/tree/main/examples/examples/src/main/java/com/dropbox/core/examples/authorize" target="_blank"&gt;the authorize examples&lt;/A&gt; to see how the authorization flow works to retrieve a refresh token.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 15:12:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/upload-file-on-dropbox-by-java/m-p/635751#M29337</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-11-10T15:12:18Z</dc:date>
    </item>
  </channel>
</rss>

