Skip to content

franko553/dark-sky-core

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dark Sky Core

NuGet Build status

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%