<?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 to get an access token and refresh token in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-an-access-token-and-refresh-token/m-p/683861#M30789</link>
    <description>&lt;P&gt;I am encountering issues when trying to obtain an access token and refresh token.&lt;BR /&gt;&lt;BR /&gt;I retrieved the access code from the following URL: &lt;A href="https://www.dropbox.com/oauth2/authorize?client_id=" target="_new"&gt;https://www.dropbox.com/oauth2/authorize?client_id=&lt;/A&gt;&amp;lt;app key&amp;gt;&amp;amp;redirect_uri=&amp;lt;REDIRECT URL&amp;gt;&amp;amp;token_access_type=offline&amp;amp;response_type=code&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I input the access code obtained from the above into &amp;lt;AUTHORIZATION_CODE&amp;gt; and executed it:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;　"code": "&amp;lt;AUTHORIZATION_CODE&amp;gt;",&lt;BR /&gt;　"grant_type": "authorization_code",&lt;BR /&gt;　"redirect_uri": "&amp;lt;REDIRECT_URI&amp;gt;",&lt;BR /&gt;　"client_id": "&amp;lt;APP_KEY&amp;gt;",&lt;BR /&gt;　"client_secret": "&amp;lt;APP_SECRET&amp;gt;"&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;However, I received the following error:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;There was an issue setting up your call.&lt;/P&gt;&lt;P&gt;Raw response for the API Status code 400&lt;BR /&gt;{"error": "invalid_request", "error_description": "The request parameters do not match any of the supported authorization flows. Please refer to the API documentation for the correct parameters."}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am unsure of what needs to be corrected. Because this is not functioning correctly, I am unable to proceed with obtaining the refresh token.&lt;BR /&gt;I would appreciate your advice.&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2023 06:59:21 GMT</pubDate>
    <dc:creator>Kentwt</dc:creator>
    <dc:date>2023-05-12T06:59:21Z</dc:date>
    <item>
      <title>How to get an access token and refresh token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-an-access-token-and-refresh-token/m-p/683861#M30789</link>
      <description>&lt;P&gt;I am encountering issues when trying to obtain an access token and refresh token.&lt;BR /&gt;&lt;BR /&gt;I retrieved the access code from the following URL: &lt;A href="https://www.dropbox.com/oauth2/authorize?client_id=" target="_new"&gt;https://www.dropbox.com/oauth2/authorize?client_id=&lt;/A&gt;&amp;lt;app key&amp;gt;&amp;amp;redirect_uri=&amp;lt;REDIRECT URL&amp;gt;&amp;amp;token_access_type=offline&amp;amp;response_type=code&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I input the access code obtained from the above into &amp;lt;AUTHORIZATION_CODE&amp;gt; and executed it:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;　"code": "&amp;lt;AUTHORIZATION_CODE&amp;gt;",&lt;BR /&gt;　"grant_type": "authorization_code",&lt;BR /&gt;　"redirect_uri": "&amp;lt;REDIRECT_URI&amp;gt;",&lt;BR /&gt;　"client_id": "&amp;lt;APP_KEY&amp;gt;",&lt;BR /&gt;　"client_secret": "&amp;lt;APP_SECRET&amp;gt;"&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;However, I received the following error:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;There was an issue setting up your call.&lt;/P&gt;&lt;P&gt;Raw response for the API Status code 400&lt;BR /&gt;{"error": "invalid_request", "error_description": "The request parameters do not match any of the supported authorization flows. Please refer to the API documentation for the correct parameters."}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am unsure of what needs to be corrected. Because this is not functioning correctly, I am unable to proceed with obtaining the refresh token.&lt;BR /&gt;I would appreciate your advice.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 06:59:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-an-access-token-and-refresh-token/m-p/683861#M30789</guid>
      <dc:creator>Kentwt</dc:creator>
      <dc:date>2023-05-12T06:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get an access token and refresh token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-an-access-token-and-refresh-token/m-p/683935#M30790</link>
      <description>&lt;P&gt;When you say you executed it, it sounds like you're referring to the step where you call &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token" target="_blank"&gt;/oauth2/token&lt;/A&gt; to exchange the authorization code for a refresh token and access token. It looks you're sending the parameters as JSON though, but the &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token" target="_blank"&gt;/oauth2/token&lt;/A&gt; endpoint requires application/x-www-form-urlencoded POST parameters, not JSON. Please update your code to send those parameters as application/x-www-form-urlencoded POST parameters. There's &lt;A href="https://dropbox.tech/developers/using-oauth-2-0-with-offline-access#using-offline-access" target="_blank"&gt;an example of this flow here&lt;/A&gt; that may be helpful.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 11:50:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-an-access-token-and-refresh-token/m-p/683935#M30790</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-05-12T11:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get an access token and refresh token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-an-access-token-and-refresh-token/m-p/683959#M30792</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you for your help. It is working properly now.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 13:07:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-an-access-token-and-refresh-token/m-p/683959#M30792</guid>
      <dc:creator>Kentwt</dc:creator>
      <dc:date>2023-05-12T13:07:57Z</dc:date>
    </item>
  </channel>
</rss>

