<?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: Obtaining authorization token with code flow in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Obtaining-authorization-token-with-code-flow/m-p/447258#M23303</link>
    <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1341372"&gt;@sbartan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Have you read "&lt;A title="Send post message" href="https://laravel.com/docs/7.x/http-client#request-data" target="_blank" rel="noopener"&gt;Request Data&lt;/A&gt;" documentation carefully? Make note on:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;By default, data will be sent using the application&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;json content type&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Little bit below could be seen:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If you would like to send data using the application&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;x&lt;SPAN class="token operator"&gt;-&lt;/SPAN&gt;www&lt;SPAN class="token operator"&gt;-&lt;/SPAN&gt;form&lt;SPAN class="token operator"&gt;-&lt;/SPAN&gt;urlencoded content type, you should call the asForm method before making your request&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. &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;</description>
    <pubDate>Fri, 21 Aug 2020 15:31:01 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2020-08-21T15:31:01Z</dc:date>
    <item>
      <title>Obtaining authorization token with code flow</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Obtaining-authorization-token-with-code-flow/m-p/447159#M23299</link>
      <description>&lt;P&gt;I'm trying to obtain authorization token with code flow. I'm using spatie/flysystem-dropbox in laravel. I'm redirected to my site, with code parameter in url, but i can't get my token.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zrzut ekranu 2020-08-21 o 11.41.21.png" style="width: 999px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/17444iF35BDDAF3BE04598/image-size/large?v=v2&amp;amp;px=999" role="button" title="Zrzut ekranu 2020-08-21 o 11.41.21.png" alt="Zrzut ekranu 2020-08-21 o 11.41.21.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recieve this error:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{"error_description":"No auth function available for given request","error":"invalid_request"}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 10:07:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Obtaining-authorization-token-with-code-flow/m-p/447159#M23299</guid>
      <dc:creator>sbartan</dc:creator>
      <dc:date>2020-08-21T10:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining authorization token with code flow</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Obtaining-authorization-token-with-code-flow/m-p/447254#M23301</link>
      <description>&lt;P&gt;The "No auth function available for given request" error should indicate that the excepted parameters for this call were not supplied correctly in the HTTPS request to&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token" target="_self"&gt;/oauth2/token&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you're providing the necessary variables, but they may not be getting sent in the right way. How is the array in that second parameter to Http::post getting formatted and sent?&amp;nbsp;The parameters for&amp;nbsp;/oauth2/token should be sent as&amp;nbsp;application/x-www-form-urlencoded POST parameters.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you able to print out the raw HTTP request? That may be useful for debugging this. We can't provide support for third party clients, platforms, or libraries though, such as&amp;nbsp;spatie/flysystem-dropbox or Laravel, so I can't offer guidance on exactly how you'd do so. You may need to refer to the relevant documentation for that.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 15:02:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Obtaining-authorization-token-with-code-flow/m-p/447254#M23301</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-08-21T15:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining authorization token with code flow</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Obtaining-authorization-token-with-code-flow/m-p/447258#M23303</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1341372"&gt;@sbartan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Have you read "&lt;A title="Send post message" href="https://laravel.com/docs/7.x/http-client#request-data" target="_blank" rel="noopener"&gt;Request Data&lt;/A&gt;" documentation carefully? Make note on:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;By default, data will be sent using the application&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;json content type&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Little bit below could be seen:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If you would like to send data using the application&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;x&lt;SPAN class="token operator"&gt;-&lt;/SPAN&gt;www&lt;SPAN class="token operator"&gt;-&lt;/SPAN&gt;form&lt;SPAN class="token operator"&gt;-&lt;/SPAN&gt;urlencoded content type, you should call the asForm method before making your request&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. &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;</description>
      <pubDate>Fri, 21 Aug 2020 15:31:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Obtaining-authorization-token-with-code-flow/m-p/447258#M23303</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2020-08-21T15:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining authorization token with code flow</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Obtaining-authorization-token-with-code-flow/m-p/447329#M23305</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;, it's working now!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 20:11:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Obtaining-authorization-token-with-code-flow/m-p/447329#M23305</guid>
      <dc:creator>sbartan</dc:creator>
      <dc:date>2020-08-21T20:11:26Z</dc:date>
    </item>
  </channel>
</rss>

