A C# class based on RestSharp with the Dark Sky API. You must acquire an API key to use it.
The project is hosted on NuGet
Create a client and then call one of the exposed methods. See the Dark Sky API for details.
var darkskyClient = new DarkSky("CLIENTKEY");
// Let's find out what's going on in the Magic Kingdom
var locandTime = new LocationAndTime(28.4193, -81.5811, DateTime.Now);
var precipitation = darkSky.Precipitation(new List<LocationAndTime>() { locandTime });
Console.WriteLine("There is a {0:P1} chance of {1} {2} at Cinderella's Castle currently.",
precipitation.Precipitation.First().Probability,
precipitation.Precipitation.First().IntensityValue,
precipitation.Precipitation.First().Type);
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Copyright (c) 2012 Francis Spor. See LICENSE for further details.