public static String getFoursquareVenueById(String venueId, String clientId, String clientSecret) throws Exception {
		HttpsURLConnection connection = null;
		InputStream inputStream = null;
		int responseCode;
		
		String url = "";
		Calendar calendar = Calendar.getInstance();
		SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");
		String vParam = format.format(calendar.getTime());
		
		try {
			url = "https://api.foursquare.com/v2/venues/" + URLEncoder.encode(venueId,"UTF-8") +
					"?client_id=" + clientId +
					"&client_secret=" + clientSecret +
					"&v=" + vParam;
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		
		final StringBuilder out = new StringBuilder();
		
		try {
			connection = (HttpsURLConnection) (new URL(url)).openConnection();

			connection.setRequestMethod("GET");
			connection.setDoOutput(true);
			connection.setReadTimeout(20000);	            

			connection.connect();

			// Getting the response code will open the connection,
			// send the request, and read the HTTP response headers.
			// The headers are stored until requested.
			responseCode = connection.getResponseCode();
			
			if (responseCode != HttpsURLConnection.HTTP_OK) {
				throw new Exception(Integer.toString(responseCode));
			}

			inputStream = connection.getInputStream();

			final char[] buffer = new char[2048];

			final Reader in = new InputStreamReader(inputStream, "UTF-8");
			for (;;) {
				int readSize = in.read(buffer, 0, buffer.length);
				if (readSize < 0)
					break;
				out.append(buffer, 0, readSize);
			}
			
			JsonElement parsedLine;
			
			try {
				parsedLine = new JsonParser().parse(out.toString());
			} catch (JsonSyntaxException e) {
				System.out.println("Skipped malformed line in the Foursquare crawl.");
				throw e;
			}

			return parsedLine.getAsJsonObject().get("response").getAsJsonObject().get("venue").toString();
		} catch (ClassCastException e) {
			throw new IllegalArgumentException("Not an HTTP URL");
		} catch (MalformedURLException e) {
			throw e;
		} catch (IOException e) {	
			throw e;
		}
	}