<?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: why does /2/users/get_current_account endpoint require a post request in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/why-does-2-users-get-current-account-endpoint-require-a-post/m-p/242339#M13516</link>
    <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am aware that content-download support &lt;STRONG&gt;get&lt;/STRONG&gt; verb (works great), that's why i was expecting a simpler way to get the&amp;nbsp;information from &lt;STRONG&gt;get_current_account&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as for the "null", the content-length : 0 (or ommiting it andalso content-type) also works. the problem is that most http libraries expect to send something when using post, and we would prefer not to chage the behaviour of the libraries.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;null is valid json value, not a valid json object&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/18419428/what-is-the-minimum-valid-json" target="_blank"&gt;https://stackoverflow.com/questions/18419428/what-is-the-minimum-valid-json&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2017 21:01:38 GMT</pubDate>
    <dc:creator>lazedo</dc:creator>
    <dc:date>2017-09-19T21:01:38Z</dc:date>
    <item>
      <title>why does /2/users/get_current_account endpoint require a post request</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/why-does-2-users-get-current-account-endpoint-require-a-post/m-p/242264#M13505</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the&amp;nbsp;/2/users/get_current_account seems a bit confusing in its usage.&lt;/P&gt;&lt;P&gt;it requires&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"post" verb&lt;/LI&gt;&lt;LI&gt;null as body content&lt;/LI&gt;&lt;LI&gt;"application/json" as content-type&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;afaik, null is not a valid json content, but the api server accepts nothing but that value in conjuction with content-type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a &lt;STRONG&gt;get&lt;/STRONG&gt; operation here seems more adequate and in line with other oauth providers, since there's no information the client needs to provide to the server besides the authorization.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you take this in consideration and implement the &lt;STRONG&gt;get&lt;/STRONG&gt; operation on this endpoint ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:19:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/why-does-2-users-get-current-account-endpoint-require-a-post/m-p/242264#M13505</guid>
      <dc:creator>lazedo</dc:creator>
      <dc:date>2019-05-29T09:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: why does /2/users/get_current_account endpoint require a post request</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/why-does-2-users-get-current-account-endpoint-require-a-post/m-p/242316#M13512</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/489139"&gt;@lazedo&lt;/a&gt;&amp;nbsp;Thanks for the feedback.&amp;nbsp;Dropbox API v2 isn't considered a REST API and so doesn't use all of the concepts typical to one, such as use of the various different HTTP methods.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead, it can be considered more like an RPC API, where each API call is a sort of remote procedure call, with HTTPS used as a transport layer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find more information on the design of API v2 on the blog:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.dropbox.com/developers/2015/04/a-preview-of-the-new-dropbox-api-v2/" target="_blank" rel="nofollow noreferrer"&gt;https://blogs.dropbox.com/developers/2015/04/a-preview-of-the-new-dropbox-api-v2/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.dropbox.com/developers/2015/04/how-many-http-status-codes-should-your-api-use/" target="_blank" rel="nofollow noreferrer"&gt;https://blogs.dropbox.com/developers/2015/04/how-many-http-status-codes-should-your-api-use/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reference, "content-download" style endpoints do support the GET method though:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#formats" target="_blank" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/documentation/http/documentation#formats&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, "null" is technically a valid JSON value, but for endpoints like&amp;nbsp;/2/users/get_current_account, if there aren't any parameters to pass, you can actually just send an empty body instead, with no Content-Type header at all.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 19:35:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/why-does-2-users-get-current-account-endpoint-require-a-post/m-p/242316#M13512</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-09-19T19:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: why does /2/users/get_current_account endpoint require a post request</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/why-does-2-users-get-current-account-endpoint-require-a-post/m-p/242339#M13516</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am aware that content-download support &lt;STRONG&gt;get&lt;/STRONG&gt; verb (works great), that's why i was expecting a simpler way to get the&amp;nbsp;information from &lt;STRONG&gt;get_current_account&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as for the "null", the content-length : 0 (or ommiting it andalso content-type) also works. the problem is that most http libraries expect to send something when using post, and we would prefer not to chage the behaviour of the libraries.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;null is valid json value, not a valid json object&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/18419428/what-is-the-minimum-valid-json" target="_blank"&gt;https://stackoverflow.com/questions/18419428/what-is-the-minimum-valid-json&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 21:01:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/why-does-2-users-get-current-account-endpoint-require-a-post/m-p/242339#M13516</guid>
      <dc:creator>lazedo</dc:creator>
      <dc:date>2017-09-19T21:01:38Z</dc:date>
    </item>
  </channel>
</rss>

