DarkSky API Wrapper for C#

By on 5/30/2012

When I saw that the guys from Dark Sky were releasing an API, I knew I wanted to work with it. So I whipped up a quick C# API Wrapper for the DarkSky API.

You can find the project here on GitHub: https://github.com/joelmartinez/darksky-csharp

Currently supported platforms are: Windows Phone, iOS, and Android via MonoTouch/Mono for Android.

Usage is very simple:
using DarkSky;

...

var darksky = new DarkSky.Api(YOUR_API_KEY); var orlando = new Position { Latitude=28.5381f, Longitude=-81.3794f }; Task<FullForecast> response = darksky.Forecast(orlando);

response.ContinueWith(forecast => DisplayText(forecast.Result.HourSummary)); // displays something like "Rain starting in 3 Min, Stopping 30 Min Later"
Please let me know if you have any feedback either by opening an issue, emailing me, commenting on my blog, or forking the project and submitting a pull request.

See more in the archives