I receive the error that no HTTPClient found on DNN as I am in the process of developing an additional module. Please see 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?)
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.