我需要 Fourquare 的地点数据。我尝试使用Venue。但是没有反应。
try {
HttpClient client = new DefaultHttpClient();
String getURL = "https://api.foursquare.com/v2/venues/4cbd52efd78f46881cf1cc73";
HttpGet get = new HttpGet(getURL);
HttpResponse responseGet = client.execute(get);
HttpEntity resEntityGet = responseGet.getEntity();
if (resEntityGet != null) {
// do something with the response
String response = EntityUtils.toString(resEntityGet);
Log.i("GET RESPONSE", response);
}
} catch (Exception e) {
e.printStackTrace();
}
这个怎么用?
请帮忙。
谢谢。