<?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 automatically generate an access code using the Dropbox API (Python) in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-automatically-generate-an-access-code-using-the-Dropbox/m-p/632569#M29196</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1586495"&gt;@musidelics_0&lt;/a&gt;&amp;nbsp;Здравко is correct. You can use a refresh token to automatically get new short-lived access tokens. For instance, if you're using &lt;A href="https://github.com/dropbox/dropbox-sdk-python" target="_blank"&gt;the official Dropbox Python SDK&lt;/A&gt;, and supply the necessary credentials, e.g., as shown in &lt;A href="https://github.com/dropbox/dropbox-sdk-python/blob/main/example/oauth/commandline-oauth-pkce.py" rel="noreferrer" target="_blank"&gt;this example&lt;/A&gt;, the SDK will handle the refresh process for you automatically.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Oct 2022 17:37:54 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2022-10-28T17:37:54Z</dc:date>
    <item>
      <title>How to automatically generate an access code using the Dropbox API (Python)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-automatically-generate-an-access-code-using-the-Dropbox/m-p/632551#M29194</link>
      <description>&lt;P&gt;I am currently working on a Python program where I automatically upload generated videos to Dropbox using the API and run the program on the cloud (so it's 100% required that it's 100% automated), but I can't seem to find a way to automatically generate new access tokens when the old one expires.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only method I seem to find involves doing it manually, which I can't afford. How do I solve this?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 16:39:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-automatically-generate-an-access-code-using-the-Dropbox/m-p/632551#M29194</guid>
      <dc:creator>musidelics_0</dc:creator>
      <dc:date>2022-10-28T16:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically generate an access code using the Dropbox API (Python)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-automatically-generate-an-access-code-using-the-Dropbox/m-p/632561#M29195</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1586495"&gt;@musidelics_0&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;..., but I can't seem to find a way to automatically generate new access tokens when the old one expires. ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You don't need to explicitly 'generate new access tokens'. The only thing you need is using refresh token on client object building and... that's it. &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; You can continue use it as you are doing now (the object itself will take care for the 'generation').&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 17:19:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-automatically-generate-an-access-code-using-the-Dropbox/m-p/632561#M29195</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-10-28T17:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically generate an access code using the Dropbox API (Python)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-automatically-generate-an-access-code-using-the-Dropbox/m-p/632569#M29196</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1586495"&gt;@musidelics_0&lt;/a&gt;&amp;nbsp;Здравко is correct. You can use a refresh token to automatically get new short-lived access tokens. For instance, if you're using &lt;A href="https://github.com/dropbox/dropbox-sdk-python" target="_blank"&gt;the official Dropbox Python SDK&lt;/A&gt;, and supply the necessary credentials, e.g., as shown in &lt;A href="https://github.com/dropbox/dropbox-sdk-python/blob/main/example/oauth/commandline-oauth-pkce.py" rel="noreferrer" target="_blank"&gt;this example&lt;/A&gt;, the SDK will handle the refresh process for you automatically.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 17:37:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-automatically-generate-an-access-code-using-the-Dropbox/m-p/632569#M29196</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-10-28T17:37:54Z</dc:date>
    </item>
  </channel>
</rss>

