This is a NHK番組表API client library for C#.
.Net Framework 4.5+
PM> Install-Package NHK4Net
const string apiKey = "YOUR_API_KEY";
try
{
using (NHKClient nhk = new NHKRestClient(apiKey))
{
var programs = await nhk.GetProgramListAsync(NHKArea.東京, NHKService.総合1, DateTime.Today);
Console.WriteLine(programs.Count());
}
}
catch (NHKException e)
{
Console.WriteLine(e.ErrorCode);
Console.WriteLine(e.Message);
}
- Migrate to .NET Standard
Licensed under the MIT License.