Skip to content

A .NET Standard Library for using the Dark Sky API.

License

Notifications You must be signed in to change notification settings

chrisbratene/dark-sky-core

 
 

Repository files navigation

Dark Sky Core

NuGet Build status codecov

A .NET Standard Library for using the Dark Sky API.

Usage

The main class is DarkSkyService. When using it you will need provide your API key after signing up for a dev account. You can also provide an implementaion of IHttpClient if you want to replace the default ZipHttpClient for testing or other purposes.

Once you have an instance of the class, use GetForecast to use the API. The method by default is a forecast request. If you specify a value for ForecastDateTime in an OptionalParameters instance it will become a time machine request.

The responses all take the form of a CamelCase version of the Dark Sky Response in DarkSkyResponse. This includes the headers and properties for the required text and link to use based on the Terms of Service.

You can see an example usage in the integration tests.

Additional Information

Code of Conduct and Contributing Guidelinesfor the project.

About

A .NET Standard Library for using the Dark Sky API.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%