Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

levimatheri/NYTimes.NET

Repository files navigation

NYTimes.NET

Build Status

A .NET Core SDK for NYTimes APIs. Model and API configuration classes generated using OpenAPI Generator.

Installation

Usage

try
{
 var items = await new Api("<YOUR-API-KEY-HERE>")
 .TopStories.GetArticlesBySection("food");
 foreach (var item in items)
 {
 Console.WriteLine(item.ToJson());
 }
}
catch (ApiException aex)
{
 Console.WriteLine(aex.Message); 
}
catch (Exception ex)
{
 Console.WriteLine(ex);
}

Contributing

  • Sign up to NY Times Developer Portal and create an application to obtain an API Key
  • Fork and clone this repo and code away!

About

A .NET Core SDK for NYTimes APIs

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

Languages

AltStyle によって変換されたページ (->オリジナル) /