I'm trying to process http request on backend, but I keep getting an error that there is no http client on DNN.
This is the code and error message below:
var client = new System.Net.Http.HttpClient();
var response = client.Get("http://api-develop.custom...i/quarterly-update); response.EnsureSuccessStatusCode();
var body = response.Content.ReadAsString();
var insight = JsonConvert.DeserializeObject(body);
Error CS0246: The type or namespace name 'HttpClient could not be found (are you missing a using directive or an assembly reference?)
Thank you very much Joe, I'll do that now.
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.