<?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: Invalid_request: No auth function available for given request in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-request-No-auth-function-available-for-given-request/m-p/208401#M10287</link>
    <description>&lt;P&gt;Thanks for the updates, Greg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, I&amp;nbsp;am trying to access\authenticate data file from DropBox before downloading it &amp;amp; need to do this in javascript.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can actually download the data files without authentication but looking for a request that autheicates the file with APP Key and Secret provided in URL &amp;amp; then downloads the file..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know&amp;nbsp;if this helps to undestand the requirement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kinjal&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2017 22:51:20 GMT</pubDate>
    <dc:creator>kpanwala</dc:creator>
    <dc:date>2017-02-24T22:51:20Z</dc:date>
    <item>
      <title>Invalid_request: No auth function available for given request</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-request-No-auth-function-available-for-given-request/m-p/208360#M10240</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am getting invalid request when i am trying to authorize for&amp;nbsp;my app using following URL:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="pln"&gt;curl &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;X POST &lt;/SPAN&gt;&lt;SPAN class="str"&gt;"https://&amp;lt;APP_KEY&amp;gt;:&amp;lt;APP_SECRET&amp;gt;@api.dropbox.com/1/metadata/link"&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; \
    &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;d link&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str"&gt;"https://www.dropbox.com/sh/748f94925f0gesq/AAAMSoRJyhJFfkupnAU0wXuva?dl=0"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Response:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"error_description": "No auth function available for given request",&lt;BR /&gt;"error": "invalid_request"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please suggest what am i doing wrong here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am using SOAPUI tool to validate the request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kinjal Panwala&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:25:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-request-No-auth-function-available-for-given-request/m-p/208360#M10240</guid>
      <dc:creator>kpanwala</dc:creator>
      <dc:date>2019-05-29T09:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid_request: No auth function available for given request</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-request-No-auth-function-available-for-given-request/m-p/208397#M10283</link>
      <description>Hi Kinjal, the curl code you posted works for me when I put in an app key and secret.&lt;BR /&gt;&lt;BR /&gt;It sounds like the tool you're using isn't producing a valid request. Note that the Dropbox API isn't a SOAP API though, so that tool may not work for it. &lt;BR /&gt;&lt;BR /&gt;Can you share the actual request it's producing?</description>
      <pubDate>Fri, 24 Feb 2017 22:43:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-request-No-auth-function-available-for-given-request/m-p/208397#M10283</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-24T22:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid_request: No auth function available for given request</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-request-No-auth-function-available-for-given-request/m-p/208401#M10287</link>
      <description>&lt;P&gt;Thanks for the updates, Greg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, I&amp;nbsp;am trying to access\authenticate data file from DropBox before downloading it &amp;amp; need to do this in javascript.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can actually download the data files without authentication but looking for a request that autheicates the file with APP Key and Secret provided in URL &amp;amp; then downloads the file..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know&amp;nbsp;if this helps to undestand the requirement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kinjal&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 22:51:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-request-No-auth-function-available-for-given-request/m-p/208401#M10287</guid>
      <dc:creator>kpanwala</dc:creator>
      <dc:date>2017-02-24T22:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid_request: No auth function available for given request</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-request-No-auth-function-available-for-given-request/m-p/208406#M10291</link>
      <description>&lt;P&gt;Do you mean you want to call /1/metadata/link from JavaScript? I just tried that out, and got it to work like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$.ajax({
    url: 'https://api.dropbox.com/1/metadata/link',
    type: 'POST',
    data: {'link': "https://www.dropbox.com/sh/748f94925f0gesq/AAAMSoRJyhJFfkupnAU0wXuva?dl=0"},
    headers: {
        "Authorization": "Basic &amp;lt;base64(APP_KEY:APP_SECRET)&amp;gt;"
     },
    success: function(data) {
        console.log(data);
    },
    error: function(data) {
        console.error(data);
    }
})
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Be sure to replace the&amp;nbsp;&amp;lt;base64(APP_KEY:APP_SECRET)&amp;gt; with your base64 encoded app key and secret, as covered here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/reference/auth-types#app" target="_blank"&gt;https://www.dropbox.com/developers/reference/auth-types#app&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(The technique of putting the app key and secret in the URL doesn't seem to work in JavaScript.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, note that API v1, such as this endpoint, is deprecated:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/" target="_blank"&gt;https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should migrate to API v2:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers&amp;nbsp;" target="_blank"&gt;https://www.dropbox.com/developers&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The equivalent endpoint in API v2 is &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_metadata" target="_self"&gt;/2/sharing/get_shared_link_metadata&lt;/A&gt;. That doesn't support app authentication though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using that in JavaScript would look like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$.ajax({
    url: 'https://api.dropboxapi.com/2/sharing/get_shared_link_metadata',
    type: 'POST',
    processData: false,
    data: JSON.stringify({"url": "https://www.dropbox.com/sh/748f94925f0gesq/AAAMSoRJyhJFfkupnAU0wXuva?dl=0"}),
    contentType: 'application/json',
    headers: {
        "Authorization": "Bearer &amp;lt;ACCESS_TOKEN&amp;gt;"
    },
    success: function(data) {
        console.log(data);
    },
    error: function(data) {
        console.error(data);
    }
})&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 23:42:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-request-No-auth-function-available-for-given-request/m-p/208406#M10291</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-24T23:42:53Z</dc:date>
    </item>
  </channel>
</rss>

