<?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 Error while generating token in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-while-generating-token/m-p/635625#M29332</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I am trying to generate access token with the api &lt;A href="https://api.dropbox.com/oauth2/token" target="_blank" rel="noopener"&gt;https://api.dropbox.com/oauth2/token&lt;/A&gt; but i m getting error like {"error": "invalid_request", "error_description": "Can't use \"Authorization\" header and \"client_secret\" arg together."}|__|0=&lt;A href="https://api.dropbox.com/oauth2/token|" target="_blank" rel="noopener"&gt;https://api.dropbox.com/oauth2/token|&lt;/A&gt;__|1={"error": "invalid_request", "error_description": "Can't use \"Authorization\" header and \"client_secret\" arg together."} But we didnt pass any header while calling token api&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Nov 2022 09:11:21 GMT</pubDate>
    <dc:creator>vimala_palanisamy22</dc:creator>
    <dc:date>2022-11-10T09:11:21Z</dc:date>
    <item>
      <title>Error while generating token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-while-generating-token/m-p/635625#M29332</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am trying to generate access token with the api &lt;A href="https://api.dropbox.com/oauth2/token" target="_blank" rel="noopener"&gt;https://api.dropbox.com/oauth2/token&lt;/A&gt; but i m getting error like {"error": "invalid_request", "error_description": "Can't use \"Authorization\" header and \"client_secret\" arg together."}|__|0=&lt;A href="https://api.dropbox.com/oauth2/token|" target="_blank" rel="noopener"&gt;https://api.dropbox.com/oauth2/token|&lt;/A&gt;__|1={"error": "invalid_request", "error_description": "Can't use \"Authorization\" header and \"client_secret\" arg together."} But we didnt pass any header while calling token api&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 09:11:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-while-generating-token/m-p/635625#M29332</guid>
      <dc:creator>vimala_palanisamy22</dc:creator>
      <dc:date>2022-11-10T09:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error while generating token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-while-generating-token/m-p/635754#M29338</link>
      <description>&lt;P&gt;I just tried out this flow and it seems to be working correctly for me. Here's a sample of what I ran (with values redacted):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;# https://www.dropbox.com/oauth2/authorize?client_id=APPKEY&amp;amp;response_type=code&amp;amp;token_access_type=offline

curl https://api.dropbox.com/oauth2/token \
    -d code=AUTHORIZATIONCODE \
    -d grant_type=authorization_code \
    -d client_id=APPKEY \
    -d client_secret=APPSECRET

# {
#   "access_token": "ACCESSTOKEN",
#   "token_type": "bearer",
#   "expires_in": 14400,
#   "refresh_token": "RERESHTOKEN",
#   "uid": "USERID",
#   "account_id": "ACCOUNTID"
# }

curl https://api.dropbox.com/oauth2/token \
    -d refresh_token=RERESHTOKEN \
    -d grant_type=refresh_token \
    -d client_id=APPKEY \
    -d client_secret=APPSECRET

# {
#   "access_token": "NEWACCESSTOKEN",
#   "token_type": "bearer",
#   "expires_in": 14400
# }
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that isn't working properly for you, please share the steps and code to reproduce the issue so we can look into it.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 15:18:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-while-generating-token/m-p/635754#M29338</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-11-10T15:18:00Z</dc:date>
    </item>
  </channel>
</rss>

