0
我正嘗試使用四方檢入端點執行GET請求。我回來了一個404錯誤,這是終端未找到。任何幫助,爲什麼會發生這將是偉大的!Foursquare API 404錯誤:未找到端點
try {
URI url = new URI("https://api.foursquare.com/v2/user/self/checkins?oauth_token="+TokenStore.get().getToken()+"&v=20140219");
HttpClient httpclient = new DefaultHttpClient();
HttpGet request = new HttpGet(url);
HttpResponse response = httpclient.execute(request);
HttpEntity entity = response.getEntity();
is = entity.getContent();
int responceCode = response.getStatusLine().getStatusCode();
Log.i(TAG, "Responce = "+ responceCode);
} catch(Exception e) {
e.printStackTrace();
}
哈哈哈我不能相信我沒有注意到,-_-。謝謝!!! – Elana