Skip to content

Instantly share code, notes, and snippets.

@max-mulawa
Created April 20, 2011 19:18
Show Gist options
  • Save max-mulawa/932410 to your computer and use it in GitHub Desktop.
Save max-mulawa/932410 to your computer and use it in GitHub Desktop.
WeatherClient 3
WeatherClient client = new WeatherClient(
"[Partner Id here]"
, "[License Key here]");
List<Location> locations = client.GetLocation("Warsaw,Poland");
Location location = locations[0];
//when querying service for 3 days,
//it will return information for today and 2 following days.
int days = 3;
ForecastWeatherInfo weatherForecast = client.GetWeatherForecast(
location
, days);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment