e.  0 0 0 0 0 0 0 0 0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 public class GetWeatherDataFunction implements RequestHandler < Request , Response > { private static final String API_KEY = "000cfe0b0ff000ad00e000a0ab0acb00" ; private static final String ENDPOINT = "http://api.openweathermap.org/data/0.0/weather?q=%s&appid=%s" ; private String buildEndpoint ( String city, String countryCode ) { return String . format ( ENDPOINT, ( countryCode != null ? city + "," + countryCode : city ) , API_KEY ) ; } public Response handleRequest ( Request request, Context context ) { Get weatherResponse = Http. get ( buildEndpoint ( request. getCity ( ) , request. getCountryCode ( ) ) ) ; ObjectMapper objectMapper = new ObjectMapper ( ) ; Response response = null ; try { response = objectMapper. readValue ( weatherResponse. text ( ) , Response. class ) ; } catch ( IOException e ) { e. printStackTrace ( ) ; } return response ; } } public class GetWeatherDataFunction implements RequestHandler<Request, Response> { private static final String API_KEY = "000cfe0b0ff000ad00e000a0ab0acb00"; private static final String ENDPOINT = "http://api.openweathermap.org/data/0.0/weather?q=%s&appid=%s"; private String buildEndpoint(String city, String countryCode) { return String.format(ENDPOINT, (countryCode != null ? city+","+countryCode : city), API_KEY); } public Response handleRequest(Request request, Context context) { Get weatherResponse = Http.get(buildEndpoint(request.getCity(), request.getCountryCode())); ObjectMapper objectMapper = new ObjectMapper(); Response response = null; try { response = objectMapper.readValue(weatherResponse.text(), Response.class); } catch (IOException e) { e.printStackTrace(); } return response; } 