<?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: How do I set up HttpContent for my HttpClient PostAsync for dropbox api in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-up-HttpContent-for-my-HttpClient-PostAsync-for/m-p/137019#M4225</link>
    <description>&lt;P&gt;Dropbox api require use "POST" method. so I use postAsync(). But httpConntent of dropbox for what?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ex: I want to get all information of account( i have a accesstoken)&lt;/P&gt;
&lt;P&gt;link:&lt;A href="https://api.dropboxapi.com/" rel="nofollow noreferrer"&gt;https://api.dropboxapi.com/&lt;/A&gt;&lt;SPAN class="hljs-number"&gt;&lt;SPAN class="hljs-number"&gt;2&lt;/SPAN&gt;&lt;/SPAN&gt;/users/get_account?access_token=my token&lt;/P&gt;
&lt;PRE&gt;The HTTP request content sent to the server.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 12 Feb 2016 20:05:50 GMT</pubDate>
    <dc:creator>le h.</dc:creator>
    <dc:date>2016-02-12T20:05:50Z</dc:date>
    <item>
      <title>How do I set up HttpContent for my HttpClient PostAsync for dropbox api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-up-HttpContent-for-my-HttpClient-PostAsync-for/m-p/137017#M4223</link>
      <description>&lt;P&gt;HttpClient client = new HttpClient();&lt;BR /&gt; client.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", oauthToken);&lt;BR /&gt; &lt;BR /&gt; HttpResponseMessage response = await client.PostAsync(link,/*what is it???*/);&lt;BR /&gt; response.Content.Headers.ContentType = new MediaTypeHeaderValue("application/json");&lt;BR /&gt; return await response.Content.ReadAsStringAsync();&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:35:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-up-HttpContent-for-my-HttpClient-PostAsync-for/m-p/137017#M4223</guid>
      <dc:creator>le h.</dc:creator>
      <dc:date>2019-05-29T09:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up HttpContent for my HttpClient PostAsync for dropbox api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-up-HttpContent-for-my-HttpClient-PostAsync-for/m-p/137018#M4224</link>
      <description>&lt;P&gt;It looks like you'e trying to call the API HTTPS endpoints directly using a third party HTTP client. As we didn't make the client, we can't help with it specifically, but we can try to offer some guidance on how to use the API.&lt;/P&gt;
&lt;P&gt;For reference, the &lt;A href="http://PostAsync" target="_blank" rel="nofollow noreferrer"&gt;documentation for PostAsync&lt;/A&gt;&amp;nbsp;indicates that the second parameter is:&lt;/P&gt;
&lt;PRE&gt;content&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Type: System.Net.Http.HttpContent&lt;BR /&gt;&amp;nbsp; &amp;nbsp; The HTTP request content sent to the server.&lt;/PRE&gt;
&lt;P&gt;So, it looks like you need to construct and supply a&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-us/library/system.net.http.httpcontent(v=vs.118).aspx" target="_blank" rel="nofollow noreferrer"&gt;HttpContent&lt;/A&gt; there. You didn't mention which API or endpoint you're trying to use, so you should refer to the relevant API documentation for the endpoint you're trying to see what the right values to send up are for your case.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 02:08:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-up-HttpContent-for-my-HttpClient-PostAsync-for/m-p/137018#M4224</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-02-11T02:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up HttpContent for my HttpClient PostAsync for dropbox api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-up-HttpContent-for-my-HttpClient-PostAsync-for/m-p/137019#M4225</link>
      <description>&lt;P&gt;Dropbox api require use "POST" method. so I use postAsync(). But httpConntent of dropbox for what?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ex: I want to get all information of account( i have a accesstoken)&lt;/P&gt;
&lt;P&gt;link:&lt;A href="https://api.dropboxapi.com/" rel="nofollow noreferrer"&gt;https://api.dropboxapi.com/&lt;/A&gt;&lt;SPAN class="hljs-number"&gt;&lt;SPAN class="hljs-number"&gt;2&lt;/SPAN&gt;&lt;/SPAN&gt;/users/get_account?access_token=my token&lt;/P&gt;
&lt;PRE&gt;The HTTP request content sent to the server.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Feb 2016 20:05:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-up-HttpContent-for-my-HttpClient-PostAsync-for/m-p/137019#M4225</guid>
      <dc:creator>le h.</dc:creator>
      <dc:date>2016-02-12T20:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up HttpContent for my HttpClient PostAsync for dropbox api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-up-HttpContent-for-my-HttpClient-PostAsync-for/m-p/137020#M4226</link>
      <description>&lt;P&gt;I'm not sure I understand your question. Can you clarify?&amp;nbsp;Thanks in advance!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, again (per your &lt;A href="https://www.dropboxforum.com/hc/en-us/community/posts/205652876--I-was-trying-to-https-api-dropboxapi-com-2-files-list-folder-access-token-but-don-t-run-Where-is-wrong-" target="_blank" rel="nofollow noreferrer"&gt;previous thread&lt;/A&gt;) note that you can't use an "access_token" URL parameter to pass up your access token to API v2. You can only use an "Authorization" header or an "authorization" URL parameter.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2016 02:05:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-up-HttpContent-for-my-HttpClient-PostAsync-for/m-p/137020#M4226</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-02-13T02:05:25Z</dc:date>
    </item>
  </channel>
</rss>

