2012-10-11 3 views
1

HereNow 더 이상 체크인을 통과 어제개최지 API -이 코드가 작동 된

var token = "<?php echo $token; ?>"; 
var venueId = "4bf42ccfe5eba593ba581f90"; 
var hereNowUrl = "https://api.foursquare.com/v2/venues/"+venueId+"/herenow?oauth_token="+token+"&limit=11&v=20121011"; 
$.getJSON(hereNowUrl, {format: "json"}, function(data) { 
     $(".who").empty(); 
     $.each(data.response.hereNow.items, function(i,hereNow){ 
     $(".who").append('<img src="'+hereNow.user.photo+'" alt="" class="userphoto" />'); 
     }); 
    }); 

그러나 지금은 단순히 hereNow 항목에서 지금은 200 오류 (감가 상각) 및 체크인의 반환된다. 우리는 쿼리하는 장소를 관리하는 페이지로 인증을받습니다. 따라서 인증 자의 친구가 아닌 모든 체크인을 볼 수 있습니다. 우리는이 작업을 했었고 지금은 게시판에 아무런 얼굴도 나타나지 않고 있습니다. API

어떤 아이디어가 진행되고 있습니까?

+0

하이 제임스, 당신은 특정 사용자 ID, venueid와 [email protected] 후속 수 있으며, 당신이보고있는 오류 문제를 디버깅하는 데 도움이. – pfhayes

답변

0

마지막으로 확인했습니다. 사진 작업 방식이 변경되어 접두사 + 사진의 크기 + 접미사가 필요하므로 이것이 내 최종 코드이며 현재 다시 작업 중입니다 !!!

function getFourSquare(){ 
$.getJSON(hereNowUrl, {format: "json"}, function(data) { 
    $(".who").empty(); 
    $.each(data.response.hereNow.items, function(i,hereNow){ 
    $(".who").append('<img src="'+hereNow.user.photo.prefix+"100x100"+hereNow.user.photo.suffix+'" alt="" class="userphoto" />'); 
    }); 
}); 

}