<?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 Generate Access Token Automatically using Code in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-Access-Token-Automatically-using-Code/m-p/661746#M30048</link>
    <description>&lt;P&gt;HI Friends&lt;/P&gt;
&lt;P&gt;i am using Dropbox API in webapi which needs access token which have the validity only few hours so that&amp;nbsp; i have to on console and generate again the token.&lt;/P&gt;
&lt;P&gt;So is this possible to use same token again or Generate new token using api without going to browser?&lt;/P&gt;</description>
    <pubDate>Tue, 21 Feb 2023 12:35:08 GMT</pubDate>
    <dc:creator>shinestar9101987</dc:creator>
    <dc:date>2023-02-21T12:35:08Z</dc:date>
    <item>
      <title>Generate Access Token Automatically using Code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-Access-Token-Automatically-using-Code/m-p/661746#M30048</link>
      <description>&lt;P&gt;HI Friends&lt;/P&gt;
&lt;P&gt;i am using Dropbox API in webapi which needs access token which have the validity only few hours so that&amp;nbsp; i have to on console and generate again the token.&lt;/P&gt;
&lt;P&gt;So is this possible to use same token again or Generate new token using api without going to browser?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 12:35:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-Access-Token-Automatically-using-Code/m-p/661746#M30048</guid>
      <dc:creator>shinestar9101987</dc:creator>
      <dc:date>2023-02-21T12:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Access Token Automatically using Code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-Access-Token-Automatically-using-Code/m-p/661767#M30049</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1624030"&gt;@shinestar9101987&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You need refresh token for long term access since long lived access token was dropped. Currently all new access token are short lived. &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; you can see an example how refresh token bahaves. Once you get to a refresh token, you can use it to initialize SDK client object. Take a look on the corresponding SDK's examples.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 08:42:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-Access-Token-Automatically-using-Code/m-p/661767#M30049</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-02-21T08:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Access Token Automatically using Code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-Access-Token-Automatically-using-Code/m-p/661912#M30053</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1624030"&gt;@shinestar9101987&lt;/a&gt; Здравко is correct, Dropbox is no longer offering the option for creating new long-lived access tokens. Dropbox is switching to only issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens. You can find &lt;A href="https://dropbox.tech/developers/migrating-app-permissions-and-access-tokens#updating-access-token-type" target="_blank" rel="noopener noreferrer"&gt;more information on this migration here&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Apps can still get long-term access by requesting "offline" access though, in which case the app receives a "refresh token" that can be used to retrieve new short-lived access tokens as needed, without further manual user intervention. You can find more information in the &lt;A href="https://developers.dropbox.com/oauth-guide" target="_blank" rel="noopener noreferrer"&gt;OAuth Guide&lt;/A&gt; and &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_blank" rel="noopener noreferrer"&gt;authorization documentation&lt;/A&gt;. There's a basic outline of processing this flow in &lt;A href="https://dropbox.tech/developers/using-oauth-2-0-with-offline-access" target="_blank" rel="noopener noreferrer"&gt;this blog post&lt;/A&gt; which may serve as a useful example.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 15:55:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generate-Access-Token-Automatically-using-Code/m-p/661912#M30053</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-02-21T15:55:51Z</dc:date>
    </item>
  </channel>
</rss>

