How can you access the response body of System.Net.Http.HttpConnectionResponseContent?

Viewed 4959

How can you access the response body of System.Net.Http.HttpConnectionResponseContent?

I'm trying to use the SendGrid API to send an email and it returns an 'HttpConnectionResponseContent' object. How can I acutally get to the response body (string) or JSON? I can't even see how I get hold of the underlying stream.

enter image description here

1 Answers

You can through this to get the content body:

response.Body.ReadAsStringAsync()

You can refer to this.

Related