private String get(String urlS) throws IOException {
        URL url = new URL(urlS);
        HttpURLConnection conn = prepareAuthorizedConnection(url);
        conn.setRequestMethod("GET");
        // Read response
        StringBuilder result = new StringBuilder();
        try (BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()))) {
            String line;
            while ((line = rd.readLine()) != null) {
                result.append(line);
            }
        }
        return result.toString();
    }
private String get ( String urlS ) throws IOException { URL url = new URL ( urlS ) ; HttpURLConnection conn = prepareAuthorizedConnection ( url ) ; conn . setRequestMethod ( "GET" ) ; StringBuilder result = new StringBuilder ( ) ; try ( BufferedReader rd = new BufferedReader ( new InputStreamReader ( conn . getInputStream ( ) ) ) ) { String line ; while ( ( line = rd . readLine ( ) ) != null ) { result . append ( line ) ; } } return result . toString ( ) ; }
Sends GET HTTP request to provided URL. Request is authorized using Google API key.

@param urlS target URL string