Skip to content

Instantly share code, notes, and snippets.

@wullemsb
Created December 10, 2018 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wullemsb/82409d4b8d70beee7a03e4c7eeae1e39 to your computer and use it in GitHub Desktop.
Save wullemsb/82409d4b8d70beee7a03e4c7eeae1e39 to your computer and use it in GitHub Desktop.
var json = JsonConvert.SerializeObject(body);
var content = new StringContent(json);
content.Headers.ContentType= new MediaTypeHeaderValue("application/json");
return _client.PostAsync(requestUri, content);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment