You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
le h.
9 years agoNew member | Level 1
How do I set up HttpContent for my HttpClient PostAsync for dropbox api
HttpClient client = new HttpClient(); client.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", oauthToken); HttpResponseMessage response = a...
Greg-DB
9 years agoDropbox Staff
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.
For reference, the documentation for PostAsync indicates that the second parameter is:
content
Type: System.Net.Http.HttpContent
The HTTP request content sent to the server.
So, it looks like you need to construct and supply a HttpContent 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.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,918 PostsLatest Activity: 2 days ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!