public async Task InitializeAsync() { Debug.WriteLine("MockBMP280::InitializeAsync"); var httpClient = new HttpClient(); var response = await httpClient.GetStringAsync( "http://api.openweathermap.org/data/2.5/weather?APPID=" + _openWeatherKey + "&units=metric&id=" + Bellevuecityid); _weatherData = JsonConvert.DeserializeObject<OpenWeatherMapData>(response); }
public async Task InitializeAsync() { Debug.WriteLine("MockBMP280::InitializeAsync"); var httpClient = new HttpClient(); var response = await httpClient.GetStringAsync( "http://api.openweathermap.org/data/2.5/weather?APPID=" + _openWeatherKey + "&units=metric&id=" + Bellevuecityid); _weatherData = JsonConvert.DeserializeObject <OpenWeatherMapData>(response); }