Since httpClient is strongly typed, we need to create a new interface that conforms to the shape of the API we'll call. To be able to do this, you need to familiarize yourself with the Current Weather Data API.
- Read documentation by navigating to http://openweathermap.org/current:
You will be using the API named By city name, which allows you to get current weather data by providing the city name as a parameter. So, your web request will look like this:
api.openweathermap.org/data/2.5/weather?q={city name},{country code}
- On the documentation page, click on ...