Dark Sky Core
A .NET Standard Library for using the Dark Sky API.
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
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
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.