<?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: legacy tooken in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642905#M3070</link>
    <description>&lt;DIV&gt;&lt;DIV&gt;Hurray made it&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;$ch&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;curl_init&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;curl_setopt&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$ch&lt;/SPAN&gt;&lt;SPAN&gt;, CURLOPT_URL, &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;A href="https://api.dropbox.com/oauth2/token" target="_blank" rel="noopener"&gt;https://api.dropbox.com/oauth2/token&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;curl_setopt&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$ch&lt;/SPAN&gt;&lt;SPAN&gt;, CURLOPT_RETURNTRANSFER, &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;curl_setopt&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$ch&lt;/SPAN&gt;&lt;SPAN&gt;, CURLOPT_POST, &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;curl_setopt&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$ch&lt;/SPAN&gt;&lt;SPAN&gt;, CURLOPT_POSTFIELDS, &lt;/SPAN&gt;&lt;SPAN&gt;"grant_type=refresh_token&amp;amp;refresh_token=***refreshtoken******"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;curl_setopt&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$ch&lt;/SPAN&gt;&lt;SPAN&gt;, CURLOPT_USERPWD, &lt;/SPAN&gt;&lt;SPAN&gt;'**AppKey'&lt;/SPAN&gt; &lt;SPAN&gt;.&lt;/SPAN&gt; &lt;SPAN&gt;':'&lt;/SPAN&gt; &lt;SPAN&gt;.&lt;/SPAN&gt; &lt;SPAN&gt;'***AppSecret*****'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;$headers&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;array&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;$headers&lt;/SPAN&gt;&lt;SPAN&gt;[] = &lt;/SPAN&gt;&lt;SPAN&gt;'Content-Type: application/x-www-form-urlencoded'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;curl_setopt&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPA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AN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 09 Dec 2022 18:00:24 GMT</pubDate>
    <dc:creator>bspindia</dc:creator>
    <dc:date>2022-12-09T18:00:24Z</dc:date>
    <item>
      <title>legacy token</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642240#M3038</link>
      <description>&lt;P&gt;my token is expiring while making api calls and getting unauthorised error due to short live tokens, how to generate unexpired token&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please assist&lt;/P&gt;
&lt;P&gt;regards,&lt;/P&gt;
&lt;P&gt;Sikandar&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 08:17:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642240#M3038</guid>
      <dc:creator>bspindia</dc:creator>
      <dc:date>2022-12-08T08:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: legacy tooken</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642243#M3039</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1598186"&gt;@bspindia&lt;/a&gt;&lt;STRONG&gt;&amp;nbsp;wrote:&lt;/STRONG&gt;&lt;BR /&gt;
&lt;P&gt;my token is expiring while making api calls and getting unauthorised error due to short live tokens, how to generate unexpired token&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Long-lived (non-expiring) tokens can no longer be generated. They were deprecated and later replaced with short-lived and refresh tokens. A refresh token is used to automatically renew access as needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://dropbox.tech/developers/migrating-app-permissions-and-access-tokens" target="_blank"&gt;https://dropbox.tech/developers/migrating-app-permissions-and-access-tokens&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://stackoverflow.com/questions/71399229/how-to-achieve-the-dropbox-equivalent-of-long-lived-token-now-that-theyre-gone" target="_blank"&gt;https://stackoverflow.com/questions/71399229/how-to-achieve-the-dropbox-equivalent-of-long-lived-token-now-that-theyre-gone&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 07 Dec 2022 15:32:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642243#M3039</guid>
      <dc:creator>Rich</dc:creator>
      <dc:date>2022-12-07T15:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: legacy tooken</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642264#M3040</link>
      <description>&lt;P&gt;how to generate short live tokens using fetch api&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 16:29:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642264#M3040</guid>
      <dc:creator>bspindia</dc:creator>
      <dc:date>2022-12-07T16:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: legacy tooken</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642266#M3041</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1598186"&gt;@bspindia&lt;/a&gt; Apps can get long-term access by requesting "offline" access, in which case the app receives a "refresh token" that can be used to retrieve new short-lived access tokens as needed, without further manual user intervention. You can find more information in the &lt;A href="https://developers.dropbox.com/oauth-guide" target="_blank" rel="noopener noreferrer"&gt;OAuth Guide&lt;/A&gt; and &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_blank" rel="noopener noreferrer"&gt;authorization documentation&lt;/A&gt;. I don't have a sample for this with fetch in particular, but there's a basic outline of processing this flow in &lt;A href="https://dropbox.tech/developers/using-oauth-2-0-with-offline-access" target="_blank" rel="noopener noreferrer"&gt;this blog post&lt;/A&gt; which may serve as a useful example so you can translate it to fetch.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 16:43:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642266#M3041</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-12-07T16:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: legacy tooken</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642278#M3042</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;i am trying to take code in res please correct headers, right now i am having error as invalid_request&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;fetch&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;A href="https://api.dropboxapi.com/oauth2/token" target="_blank"&gt;https://api.dropboxapi.com/oauth2/token&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;,{&lt;/SPAN&gt;&lt;SPAN&gt;method&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;'post'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;headers&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"Content-Type"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"application/json"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"Authorization"&lt;/SPAN&gt;&lt;SPA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t;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;log&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;error&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 07 Dec 2022 17:37:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642278#M3042</guid>
      <dc:creator>bspindia</dc:creator>
      <dc:date>2022-12-07T17:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: legacy tooken</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642299#M3043</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1598186"&gt;@bspindia&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The call &lt;A title="An app calls this endpoint to acquire a bearer token once the user has authorized the app" href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token" target="_blank" rel="noopener"&gt;/oauth2/token&lt;/A&gt; doesn't support Bearer authorization. It's used to receive such a token, not to use it. Can be used Basic authorization to pass application key and secret or pass them as parameters. Depending on exact step you are performing other parameters should be passed too, but you are skipping them in your code. Take a look on the documentation.&lt;/P&gt;&lt;P&gt;Hope this sheds some light.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 18:42:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642299#M3043</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-12-07T18:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: legacy tooken</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642310#M3044</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1598186"&gt;@bspindia&lt;/a&gt;&amp;nbsp;Здравко is correct; your request is not formatted properly. You should use "Basic" authorization for that particular call, not "Bearer". Also, make sure you supply the necessary parameters as shown in &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token" target="_blank"&gt;the documentation&lt;/A&gt;. Check out step 5 in &lt;A href="https://dropbox.tech/developers/using-oauth-2-0-with-offline-access#using-offline-access" target="_blank"&gt;section 2 of this blog post&lt;/A&gt; for an example to translate.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 19:25:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642310#M3044</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-12-07T19:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: legacy tooken</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642410#M3045</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;i am getting the code when i manually enter url in browser, but how to get using fetch api&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// authorization&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;let&lt;/SPAN&gt; &lt;SPAN&gt;dropBox&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;Object&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;dropBox&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;apiKey&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'XXXXXXXXXX'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;dropBox&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;apiSecret&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'XXXXXXXXX'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;fetch&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;A href="https://www.dropbox.com/oauth2/authorize" target="_blank"&gt;https://www.dropbox.com/oauth2/authorize&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;,{&lt;/SPAN&gt;&lt;SPAN&gt;method&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;'get'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;headers&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;"Content-Type"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"application/json"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;"client_id"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;dropBox&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;apiKey&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;"response_type"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"code"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;"token_access_type"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"offline"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;"state"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;"redirect_uri"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;A href="https://bspindia.online" target="_blank"&gt;https://bspindia.online&lt;/A&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}})&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;then&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;authReq&lt;/SPAN&gt;&lt;SPAN&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;authReq&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;json&lt;/SPAN&gt;&lt;SPAN&gt;())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;then&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;authRes&lt;/SPAN&gt;&lt;SPAN&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;// obtain token&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;console&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;log&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;authRes&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;// store token in indexedDB&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}).&lt;/SPAN&gt;&lt;SPAN&gt;then&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;calldBox&lt;/SPAN&gt;&lt;SPAN&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;// call api&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;})&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Dec 2022 03:32:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642410#M3045</guid>
      <dc:creator>bspindia</dc:creator>
      <dc:date>2022-12-08T03:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: legacy tooken</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642520#M3048</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1598186"&gt;@bspindia&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You cannot call &lt;A title="Starts the OAuth 2.0 authorization flow. This isn't an API call—it's the web page." href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize" target="_blank" rel="noopener"&gt;/oauth2/authorize&lt;/A&gt; as regular API call (or similar)! This is address you should redirect to (either explicitly or with web link) your web session to let user authenticates. So you cannot use 'fetch'. To get some of results fields (including the code) you have to "catch" it in your browser address line. &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; Example how you can get code may be seen &lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/main/examples/javascript/pkce-browser/index.html#L56" target="_blank" rel="noopener"&gt;here&lt;/A&gt; and how you can get access token (short lived) may be seen &lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/main/examples/javascript/auth/index.html#L46" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. Again, 'fetch' or any other similar method to make a web request is inapplicable in this very first step! 'fetch' is usable for all remaining API calls (regular or not).&lt;/P&gt;&lt;P&gt;Read the documentation with more attention to details (devil is in details &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@43936046666A7399861DC821652B665A/emoticons/1f608.png" alt=":smiling_face_with_horns:" title=":smiling_face_with_horns:" /&gt;).&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 13:43:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642520#M3048</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-12-08T13:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: legacy tooken</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642598#M3055</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1598186"&gt;@bspindia&lt;/a&gt;&amp;nbsp;Здравко is correct; /oauth2/authorize is a web page, not an API call. It's where you should send the user, in their web browser, to authorize your app.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 17:07:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642598#M3055</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-12-08T17:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: legacy tooken</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642729#M3059</link>
      <description>&lt;P&gt;ok used location.assign()&lt;/P&gt;&lt;P&gt;and got code in redirected url&lt;/P&gt;&lt;P&gt;used url searchparamaters and stored code&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;again i made a location.assign("&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://www.dropbox.com/oauth2/authorize?client_id=81q62jqcjxcyu4x&amp;amp;redirect_uri=https://bspindia.online/test.html&amp;amp;code=" target="_blank"&gt;https://www.dropbox.com/oauth2/authorize?client_id=81q62jqcjxcyu4x&amp;amp;redirect_uri=https://bspindia.online/test.html&amp;amp;code=&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN&gt;code&lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN&gt;"&amp;amp;state=state&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;")&lt;/DIV&gt;&lt;DIV&gt;but got 400 error as&amp;nbsp;&lt;SPAN&gt;Unexpected response_type request param value.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Dec 2022 06:07:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642729#M3059</guid>
      <dc:creator>bspindia</dc:creator>
      <dc:date>2022-12-09T06:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: legacy tooken</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642815#M3060</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1598186"&gt;@bspindia&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;again i made a location.assign("&lt;/DIV&gt;&lt;DIV&gt;...&lt;/DIV&gt;&lt;/DIV&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Why "again"?! &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; You have already all you can get from this page (i.e. the code). What are you looking for there again? 🧐&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1598186"&gt;@bspindia&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;DIV&gt;&lt;DIV&gt;...&lt;/DIV&gt;&lt;DIV&gt;but got 400 error as&amp;nbsp;&lt;SPAN&gt;Unexpected response_type request param value.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, it's normal. You haven't set 'response_type' parameter - a mandatory parameter! Here the error message can be a bit more clear (i.e. something like "missing request param", not "unexpected"), but...&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 14:09:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642815#M3060</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-12-09T14:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: legacy tooken</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642823#M3061</link>
      <description>&lt;P&gt;means i have to make fetch with received code for token, right&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 14:23:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642823#M3061</guid>
      <dc:creator>bspindia</dc:creator>
      <dc:date>2022-12-09T14:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: legacy tooken</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642827#M3062</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1598186"&gt;@bspindia&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;means i have to make fetch with received code for token, right&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Did you read the documentation? What is the call &lt;A title="An app calls this endpoint to acquire a bearer token once the user has authorized the app" href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token" target="_blank" rel="noopener noreferrer"&gt;/oauth2/token&lt;/A&gt;, you asked about previously for? &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;Also, take in mind the above call is used in different situations, with different params (different results, of course) - when you are getting your refresh token and when you are using this token (to get refreshed access token)! Don't forget what are you doing in any particular situation (forgetting means error).&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 14:33:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642827#M3062</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-12-09T14:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: legacy tooken</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642830#M3063</link>
      <description>&lt;P&gt;i compress the input file image to webp using canvas,&lt;/P&gt;&lt;P&gt;and uploaded using token&lt;/P&gt;&lt;P&gt;now due to short live tokens, i am getting unauthorised error while uploading blob&lt;/P&gt;&lt;P&gt;hence to i need unexpired token,&lt;/P&gt;&lt;P&gt;now as dropbox is not giveing legacy tokens,&lt;/P&gt;&lt;P&gt;i have to authorize app-&amp;gt; generate new token with code-&amp;gt;upload blob to dropbox with token&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 14:47:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642830#M3063</guid>
      <dc:creator>bspindia</dc:creator>
      <dc:date>2022-12-09T14:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: legacy tooken</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642832#M3064</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1598186"&gt;@bspindia&lt;/a&gt;, don't be so lazy! Don't ask question that I just explained in my previous post above. Ok. I'll repeat again: one of the possible usage of mentioned call is access token refresh!!! Do you need such a refresh (i.e. your access token expired as explained &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issue-in-generating-access-token/m-p/592667" target="_blank" rel="noopener"&gt;here&lt;/A&gt;, for instance)?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 14:53:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642832#M3064</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-12-09T14:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: legacy tooken</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642850#M3065</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1598186"&gt;@bspindia&lt;/a&gt;&amp;nbsp;Здравко is correct; you can use a refresh token to get new short-lived access tokens when needed without having the user manually re-authorize the app each time. Please refer to the resources linked earlier in this thread for more information on that.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 15:37:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642850#M3065</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-12-09T15:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: legacy tooken</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642879#M3066</link>
      <description>&lt;P&gt;as per my understanding,&lt;/P&gt;&lt;P&gt;i got the code, and when i made a curl request from terminal window received short live token and refresh token&lt;/P&gt;&lt;P&gt;i should keep refresh token and request for shorl live token using refresh token using curl to make api calls,&lt;/P&gt;&lt;P&gt;am i right&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 16:47:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642879#M3066</guid>
      <dc:creator>bspindia</dc:creator>
      <dc:date>2022-12-09T16:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: legacy tooken</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642880#M3067</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1598186"&gt;@bspindia&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;i should keep refresh token and request for shorl live token using refresh token using &lt;STRONG&gt;curl&lt;/STRONG&gt; to make api calls,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Either 'curl' or 'fetch'... Yes.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 16:51:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642880#M3067</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-12-09T16:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: legacy tooken</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642888#M3068</link>
      <description>&lt;P&gt;every thing is fine when run from terminal, but can you please correct paramenters, i am getting this error&lt;/P&gt;&lt;P&gt;&lt;SPAN&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;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;$headers&lt;/SPAN&gt;&lt;SPAN&gt;[]=&lt;/SPAN&gt;&lt;SPAN&gt;"Accept:application/json"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;SPAN&gt;$headers&lt;/SPAN&gt;&lt;SPAN&gt;[]=&lt;/SPAN&gt;&lt;SPAN&gt;"Content-Type:application/json"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;$cl&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;curl_init&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; curl_setopt&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$cl&lt;/SPAN&gt;&lt;SPAN&gt;, CURLOPT_URL,&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;A href="https://api.dropbox.com/oauth2/token" target="_blank" rel="noopener"&gt;https://api.dropbox.com/oauth2/token&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; curl_setopt&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$cl&lt;/SPAN&gt;&lt;SPAN&gt;, CURLOPT_POST,&lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; curl_setopt&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$cl&lt;/SPAN&gt;&lt;SPAN&gt;,CURLOPT_HTTPHEADER,&lt;/SPAN&gt;&lt;SPAN&gt;$headers&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; curl_setopt&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$cl&lt;/SPAN&gt;&lt;SPAN&gt;,CURLOPT_POSTFIELDS,&lt;/SPAN&gt;&lt;SPAN&gt;'{"grant_type":"refresh_token"}'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; curl_setopt&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$cl&lt;/SPAN&gt;&lt;SPAN&gt;,CURLOPT_POSTFIELDS,&lt;/SPAN&gt;&lt;SPAN&gt;'{"refresh_token":"****refresh_token_generated_from terminl******"}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t;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;curl_close&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$cl&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Dec 2022 17:23:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/legacy-token/m-p/642888#M3068</guid>
      <dc:creator>bspindia</dc:creator>
      <dc:date>2022-12-09T17:23:41Z</dc:date>
    </item>
  </channel>
</rss>

