<?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: Python SDK: refresh_access_token() and check_and_refresh_access_token() need app_key and app_sec in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-refresh-access-token-and-check-and-refresh-access/m-p/520878#M25406</link>
    <description>&lt;P&gt;Thanks for the feedback! I'll share this with the team to see if we can improve the SDK documentation around this.&lt;/P&gt;</description>
    <pubDate>Mon, 17 May 2021 16:52:45 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2021-05-17T16:52:45Z</dc:date>
    <item>
      <title>Python SDK: refresh_access_token() and check_and_refresh_access_token() need app_key and app_secret</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-refresh-access-token-and-check-and-refresh-access/m-p/520855#M25403</link>
      <description>&lt;P&gt;I only found after experimenting around and re-reading the OAuth guide (&lt;A href="https://developers.dropbox.com/de-de/oauth-guide" target="_blank" rel="noopener"&gt;https://developers.dropbox.com/de-de/oauth-guide&lt;/A&gt;) that the Python SDK functions mentioned in the title need the app_key and app_secret to check and refresh access_tokens.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;dbx = dropbox.Dropbox(
    oauth2_access_token=MYTOKEN,
    oauth2_access_token_expiration=MYEXPIRATION, 
    oauth2_refresh_token=MYREFRESHTOKEN, 
    app_key=MY_APP_KEY, 
    app_secret=MY_APP_SECRET
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...is the only way those functions would work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried plenty of times just with the bare access_token and combinations of the above. If you look at the API documentation one can see that this is needed but for me, as a beginner in Python and especially with close to zero knowledge about the Dropbox Python SDK, it would have been easier if the documentation was a little bit more elaborate about mandatory class attributes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway besides that little "complaint" I really enjoy the SDK and want to congratulate you for this overall amazing product&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 13:54:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-refresh-access-token-and-check-and-refresh-access/m-p/520855#M25403</guid>
      <dc:creator>foxo1</dc:creator>
      <dc:date>2021-05-18T13:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Python SDK: refresh_access_token() and check_and_refresh_access_token() need app_key and app_sec</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-refresh-access-token-and-check-and-refresh-access/m-p/520878#M25406</link>
      <description>&lt;P&gt;Thanks for the feedback! I'll share this with the team to see if we can improve the SDK documentation around this.&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 16:52:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Python-SDK-refresh-access-token-and-check-and-refresh-access/m-p/520878#M25406</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-05-17T16:52:45Z</dc:date>
    </item>
  </channel>
</rss>

