Foursquare API 404错误:找不到端点

时间:2014-02-20 05:43:36

标签: android foursquare

我正在尝试使用foursquare checkin端点执行GET请求。我收到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();
    }

1 个答案:

答案 0 :(得分:1)

端点是 users / self ,而不是用户/自己。只是一个错字:)