<?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 Is it possible to pass all parameters to a v2 API request in URL parameters? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-pass-all-parameters-to-a-v2-API-request-in-URL/m-p/152792#M5099</link>
    <description>&lt;P&gt;&amp;nbsp; &amp;nbsp;I have very particular situation when I cannot use request header at all and I'm basically need to pass all the parameters as URL parameters. It is not a problem for the v1 API. For example with this request I can easily upload a file&lt;/P&gt;
&lt;P&gt;&lt;A href="https://content.dropboxapi.com/1/files_put/auto%7BWorkingPathName%7D?access_token=%7BAuthorizationToken%7D" rel="nofollow noreferrer" target="_blank"&gt;https://content.dropboxapi.com/1/files_put/auto{WorkingPathName}?access_token={AuthorizationToken}&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;However it does not seem to be possible with v2 API. Specification says "These endpoints accept file content in the request body, so their arguments are instead passed as JSON in the &lt;CODE&gt;Dropbox-API-Arg&lt;/CODE&gt; request header or &lt;CODE&gt;arg&lt;/CODE&gt; URL parameter", So there seems to be hope&amp;nbsp;it should work but it either does not accept parameters in URL or access_token parameters is not accepted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;If it is actually possible could somebody give an example how to correctly compose a request for '&lt;A href="https://content.dropboxapi.com/2/files/upload" rel="nofollow noreferrer" target="_blank"&gt;https://content.dropboxapi.com/2/files/upload&lt;/A&gt;'?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;I tried something like this and that did not work.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://content.dropboxapi.com/2/files/upload?path=%7BWorkingPathName%7D&amp;amp;access_token=%7BAuthorizationToken%7D" rel="nofollow noreferrer" target="_blank"&gt;https://content.dropboxapi.com/2/files/upload?path={WorkingPathName}&amp;amp;access_token={AuthorizationToken}&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:35:14 GMT</pubDate>
    <dc:creator>Alexander K.28</dc:creator>
    <dc:date>2019-05-29T09:35:14Z</dc:date>
    <item>
      <title>Is it possible to pass all parameters to a v2 API request in URL parameters?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-pass-all-parameters-to-a-v2-API-request-in-URL/m-p/152792#M5099</link>
      <description>&lt;P&gt;&amp;nbsp; &amp;nbsp;I have very particular situation when I cannot use request header at all and I'm basically need to pass all the parameters as URL parameters. It is not a problem for the v1 API. For example with this request I can easily upload a file&lt;/P&gt;
&lt;P&gt;&lt;A href="https://content.dropboxapi.com/1/files_put/auto%7BWorkingPathName%7D?access_token=%7BAuthorizationToken%7D" rel="nofollow noreferrer" target="_blank"&gt;https://content.dropboxapi.com/1/files_put/auto{WorkingPathName}?access_token={AuthorizationToken}&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;However it does not seem to be possible with v2 API. Specification says "These endpoints accept file content in the request body, so their arguments are instead passed as JSON in the &lt;CODE&gt;Dropbox-API-Arg&lt;/CODE&gt; request header or &lt;CODE&gt;arg&lt;/CODE&gt; URL parameter", So there seems to be hope&amp;nbsp;it should work but it either does not accept parameters in URL or access_token parameters is not accepted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;If it is actually possible could somebody give an example how to correctly compose a request for '&lt;A href="https://content.dropboxapi.com/2/files/upload" rel="nofollow noreferrer" target="_blank"&gt;https://content.dropboxapi.com/2/files/upload&lt;/A&gt;'?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;I tried something like this and that did not work.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://content.dropboxapi.com/2/files/upload?path=%7BWorkingPathName%7D&amp;amp;access_token=%7BAuthorizationToken%7D" rel="nofollow noreferrer" target="_blank"&gt;https://content.dropboxapi.com/2/files/upload?path={WorkingPathName}&amp;amp;access_token={AuthorizationToken}&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:35:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-pass-all-parameters-to-a-v2-API-request-in-URL/m-p/152792#M5099</guid>
      <dc:creator>Alexander K.28</dc:creator>
      <dc:date>2019-05-29T09:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to pass all parameters to a v2 API request in URL parameters?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-pass-all-parameters-to-a-v2-API-request-in-URL/m-p/152793#M5100</link>
      <description>&lt;P&gt;Hi Alexander, yes, you can pass the arguments on the URL. You cited the right documentation, but your implementation isn't quite right. You should put all of the arguments as JSON in a URL parameter actually named "arg". Likewise, you need to use the "authorization" parameter to send up the access token.&lt;/P&gt;
&lt;P&gt;To make the arg value,&amp;nbsp;&lt;SPAN class="author-d-42z69zz85zx9z84zz79zvz66zz71z4yz65zz67znhz79zc77sz85z2z122zaaiqz74zqz76zz66z4lcz84zz81zz73zz68zvz81zoyz86z"&gt;generate a JSON string of the parameters, encode as UTF-8, then use the “application/x-www-form-urlencoded” rules to encode the value.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Here's an example using curl to upload a local test.txt file to /test.txt in Dropbox, passing authorization and arg as URL parameters:&lt;/P&gt;
&lt;PRE&gt;curl -X POST "https://content.dropboxapi.com/2/files/upload?authorization=Bearer%20ACCESS_TOKEN_HERE&amp;amp;arg=%7B%22path%22%3A%20%22%2Ftest.txt%22%7D" \&lt;BR /&gt; --header "Content-Type: application/octet-stream" \&lt;BR /&gt; --data-binary @test.txt&lt;/PRE&gt;
&lt;P&gt;The Content-Type does need to be set correctly though. I don't know what your particular situation is, but hopefully that does get set for you, or you have a way to do so.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 01:37:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-pass-all-parameters-to-a-v2-API-request-in-URL/m-p/152793#M5100</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-03-03T01:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to pass all parameters to a v2 API request in URL parameters?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-pass-all-parameters-to-a-v2-API-request-in-URL/m-p/152794#M5101</link>
      <description>&lt;PRE id="tw-target-text" class="tw-data-text vk_txt tw-ta tw-text-small"&gt;&lt;SPAN&gt;Please , how would you to perform the download: https://content.dropboxapi.com/2/files/download&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Jul 2016 05:24:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-pass-all-parameters-to-a-v2-API-request-in-URL/m-p/152794#M5101</guid>
      <dc:creator>Fernando M.9</dc:creator>
      <dc:date>2016-07-27T05:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to pass all parameters to a v2 API request in URL parameters?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-pass-all-parameters-to-a-v2-API-request-in-URL/m-p/152795#M5102</link>
      <description>&lt;P&gt;Hi Fernando, downloading would look like:&lt;/P&gt;
&lt;PRE&gt;curl "https://content.dropboxapi.com/2/files/download?authorization=Bearer%20ACCESS_TOKEN_HERE&amp;amp;arg=%7B%22path%22%3A%20%22%2Ftest.txt%22%7D"&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jul 2016 01:43:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-pass-all-parameters-to-a-v2-API-request-in-URL/m-p/152795#M5102</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-07-28T01:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to pass all parameters to a v2 API request in URL parameters?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-pass-all-parameters-to-a-v2-API-request-in-URL/m-p/213862#M10899</link>
      <description>&lt;P&gt;Why i'm getting this error ? "Error in call to API function "users/get_current_account": Invalid authorization value in URL parameter "authorization": "Bearer%20REDACTED_ACCESS_TOKEN". &amp;nbsp;Expecting "Bearer &amp;lt;oauth2-access-token&amp;gt;"."&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 18:32:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-pass-all-parameters-to-a-v2-API-request-in-URL/m-p/213862#M10899</guid>
      <dc:creator>incode4it</dc:creator>
      <dc:date>2017-03-29T18:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to pass all parameters to a v2 API request in URL parameters?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-pass-all-parameters-to-a-v2-API-request-in-URL/m-p/213864#M10900</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/376525"&gt;@incode4it&lt;/a&gt;&amp;nbsp;That value looks right. Can you share your code, or the full/raw request and response? Just be sure to redact the access token itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, I redacted your access token from your post, but for the sake of security, you should disable that access token since you posted it publicly. You can do so by revoking access to the app entirely, if the access token is for your account, here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/account/security" target="_blank"&gt;https://www.dropbox.com/account/security&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or, you can disable just this access token using the API:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;v2: &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 18:34:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-pass-all-parameters-to-a-v2-API-request-in-URL/m-p/213864#M10900</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-29T18:34:33Z</dc:date>
    </item>
  </channel>
</rss>

