CovidSharp is a C# API wrapper for the Coronavirus tracking API
static void Main(string[] args)
{
// Declares the instance of the API
CoronavirusData data = new CoronavirusData();
// Fetches the latest data
Console.WriteLine("Confirmed: " + data.LatestConfirmed());
Console.WriteLine("Recovered: " + data.LatestRecovered());
Console.WriteLine("Deaths: " + data.LatestDeaths());
// Fetches the latest data of a country
Console.WriteLine("Denmark Confirmed: " + data.FromCountryConfirmed("DK"));
Console.WriteLine("Denmark Recovered: " + data.FromCountryRecovered("DK"));
Console.WriteLine("Denmark Deaths: " + data.FromCountryDeaths("DK"));
Console.ReadLine();
}
}
}RestSharp Newtonsoft.json
Add the library and the prerequisites as references
Will soon be available as a nuget package