1
マイCurrentCode:は: `C#でsystem.io.stream``にsystem.net.http.httpresponemessage`
using (var client = new HttpClient
{
Timeout = TimeSpan.FromMilliseconds(2000)
})
{
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
var response = await client.GetAsync(new Uri(Constants.mUrl));
// convert stream to string
StreamReader reader = new StreamReader(respons);
var myItems = Newtonsoft.Json.JsonConvert.DeserializeObject<ModelClassObject>(response);
return myItems;
}