A .NET Standard Library for using the Dark Sky API.
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode Fix tasks.json for vscode Jul 19, 2017
src
test
.editorconfig
.gitignore
CHANGELOG.md
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md Jul 12, 2017
CONTRIBUTING.md
DarkSkyCore.sln
LICENSE
README.md
azure-pipelines.yml
renovate.json

README.md

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.