<?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: Acces token for python django in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Acces-token-for-python-django/m-p/729041#M32238</link>
    <description>&lt;P&gt;&amp;nbsp;thank you, i was testing this approach this days i delivered the app and just gave it the autorization and still working, thank you for the help !&lt;/P&gt;</description>
    <pubDate>Mon, 13 Nov 2023 04:09:44 GMT</pubDate>
    <dc:creator>dmartinez</dc:creator>
    <dc:date>2023-11-13T04:09:44Z</dc:date>
    <item>
      <title>Acces token for python django</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Acces-token-for-python-django/m-p/727856#M32198</link>
      <description>&lt;P&gt;Hello, im trying to acces with a django porject to my own account files but the short live tokens renew each 4 hours i tried generating the offline token but it results on renewing it again, i am not that into oauth so im having issues on this part oculd someone helpme trying to get arround this issue, again is for my own account im using the list folder for downloading some fileds and working with panda but i want a permanent token for not having some to give permision to acces dropbox.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 05:50:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Acces-token-for-python-django/m-p/727856#M32198</guid>
      <dc:creator>dmartinez</dc:creator>
      <dc:date>2023-11-08T05:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Acces token for python django</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Acces-token-for-python-django/m-p/727951#M32204</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1764418"&gt;@dmartinez&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;For long term access you need refresh token. If a supported SDK is in use just proper initialization is enough (for the rest SDK takes care), otherwise tracing access token validity and refresh whenever needed should be performed. So you wouldn't need "to give permision to acces dropbox" (no repeatedly at least - only once at the beginning). &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;&lt;/P&gt;&lt;P&gt;Hope this gives direction.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 13:47:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Acces-token-for-python-django/m-p/727951#M32204</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-11-08T13:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Acces token for python django</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Acces-token-for-python-django/m-p/727985#M32208</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1764418"&gt;@dmartinez&lt;/a&gt; Здравко is correct; for long-term access you should use a refresh token. Refresh tokens do not expire and can be used repeatedly. You do not need to re-authorize the app each time. Once you have a refresh token you can store and re-use that refresh token without further manual action.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://github.com/dropbox/dropbox-sdk-python" target="_blank" rel="nofollow noopener noreferrer"&gt;official Dropbox Python SDK&lt;/A&gt; will handle the details of how to use a refresh token for you, so you would just need to make the Dropbox client object like this, if you used PKCE to retrieve the refresh token:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-python"&gt;&lt;CODE&gt;dropbox.Dropbox(oauth2_refresh_token=REFRESH_TOKEN, app_key=APP_KEY)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or like this, if you did not use PKCE to retrieve the refresh token:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-python"&gt;&lt;CODE&gt;dropbox.Dropbox(oauth2_refresh_token=REFRESH_TOKEN, app_key=APP_KEY, app_secret=APP_SECRET)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reference, you can find more information on how this works at the following resources:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://developers.dropbox.com/oauth-guide" target="_blank" rel="noopener noreferrer"&gt;https://developers.dropbox.com/oauth-guide&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_blank" rel="noopener noreferrer"&gt;https://www.dropbox.com/developers/documentation/http/documentation#authorization&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://dropbox.tech/developers/using-oauth-2-0-with-offline-access" target="_blank" rel="nofollow noopener noreferrer"&gt;https://dropbox.tech/developers/using-oauth-2-0-with-offline-access&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 08 Nov 2023 15:36:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Acces-token-for-python-django/m-p/727985#M32208</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-11-08T15:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Acces token for python django</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Acces-token-for-python-django/m-p/729041#M32238</link>
      <description>&lt;P&gt;&amp;nbsp;thank you, i was testing this approach this days i delivered the app and just gave it the autorization and still working, thank you for the help !&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 04:09:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Acces-token-for-python-django/m-p/729041#M32238</guid>
      <dc:creator>dmartinez</dc:creator>
      <dc:date>2023-11-13T04:09:44Z</dc:date>
    </item>
  </channel>
</rss>

