Create .NET MVC application with API call with RestSharp.
- New York Times API
-
Get a API key for Top Stories API from New York Times developer account
-
Create a EnvironmentVariables.cs in MvcApiCall/Models and paste the API key in the code:
namespace MvcApiCall.Models { public static class EnvironmentVariables { public static string ApiKey = "paste-api-key-here"; } }
-
- Clone this repo:
$ git clone this-project-url
-
Make sure you have added a EnvironmentVariables.cs in MvcApiCall/Models with your api key
-
Run application
$ dotnet run
- No known bugs at this time.
C# and ASP.NET Core MVC, MySQL and Entity Framework
Copyright © 2020 under the MIT License