Skip to content

monmaru/NHK4Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NHK4Net

This is a NHK番組表API client library for C#.

Build status NuGet Package

Requirements

.Net Framework 4.5+

Install

PM> Install-Package NHK4Net

Usage

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);
}

TODO

  • Migrate to .NET Standard

License

Licensed under the MIT License.