<?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 How can I retrieve refresh token automatically in Python API for long lasting app? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-retrieve-refresh-token-automatically-in-Python-API-for/m-p/646371#M29657</link>
    <description>&lt;P&gt;I am trying to build an app that automatically updates files every minute from my server PC to dropbox API using the python app. But after 4 hours, it gives an expired token error. what I do is go to the token URL and click on allow button, copying refresh token, and use this in my code to get access token and work using it and to implement if condition to check if the response shows an error of expired token then again requests a new access token using refresh token that received in the previous response. Here is my code in &lt;A href="https://github.com/sufiyanashraf/dropboxhelp/blob/main/Dropbox%20help" target="_blank" rel="noopener"&gt;Github&lt;/A&gt;. Please check if there is any mistake.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Solved! Was doing a little mistake!&lt;/P&gt;</description>
    <pubDate>Tue, 27 Dec 2022 06:29:41 GMT</pubDate>
    <dc:creator>Sufiyanashraf</dc:creator>
    <dc:date>2022-12-27T06:29:41Z</dc:date>
    <item>
      <title>How can I retrieve refresh token automatically in Python API for long lasting app?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-retrieve-refresh-token-automatically-in-Python-API-for/m-p/646371#M29657</link>
      <description>&lt;P&gt;I am trying to build an app that automatically updates files every minute from my server PC to dropbox API using the python app. But after 4 hours, it gives an expired token error. what I do is go to the token URL and click on allow button, copying refresh token, and use this in my code to get access token and work using it and to implement if condition to check if the response shows an error of expired token then again requests a new access token using refresh token that received in the previous response. Here is my code in &lt;A href="https://github.com/sufiyanashraf/dropboxhelp/blob/main/Dropbox%20help" target="_blank" rel="noopener"&gt;Github&lt;/A&gt;. Please check if there is any mistake.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Solved! Was doing a little mistake!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 06:29:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-retrieve-refresh-token-automatically-in-Python-API-for/m-p/646371#M29657</guid>
      <dc:creator>Sufiyanashraf</dc:creator>
      <dc:date>2022-12-27T06:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I retrieve refresh token automatically in Python API for long lasting app?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-retrieve-refresh-token-automatically-in-Python-API-for/m-p/646661#M29662</link>
      <description>&lt;P&gt;Thanks for following up. I'm glad to hear you got that solved.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 15:16:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-can-I-retrieve-refresh-token-automatically-in-Python-API-for/m-p/646661#M29662</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-12-27T15:16:40Z</dc:date>
    </item>
  </channel>
</rss>

