Set Authorization/Content-Type headers when call HTTPClient.PostAsync
The way to add headers is as follows: HttpClient client = new HttpClient(); client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(“Bearer”, “Your Oauth token”); Or if you want some custom header: HttpClient client = new HttpClient(); client.DefaultRequestHeaders.Add(“HEADERNAME”, “HEADERVALUE”); This answer has SO responses already, see below: Adding headers when using httpClient.GetAsync Setting Authorization Header of HttpClient UPDATE Seems you … Read more