문제

I have a list of badge messages exported by users through twitter:

i.e. https://foursquare.com/ruben_es/badge/4f07d1fee4b026656d9dad16?ref=tw

I can't seam to understand if it's possible to access the checkin/venue connected with this badge. The web page for the badge doesn't report anything and also the API doesn't mention anything as far as I can tell.

https://developer.foursquare.com/docs/responses/badge has a field "unlocks that says: "Optional If present, an array of unlock data. Array contains checkins, which is an array of checkins. Currently both arrays will only contain 1 element.". What are these unlock checkins?

Any ideas?

도움이 되었습니까?

해결책

When accessing the badges for the acting user or the acting user's friends, the unlocks array will contain a single checkin object. That check-in is the one that caused the user to unlock the badge.

So if you're looking for the location where that badge was unlocked, look at the venue object contained in the unlock check-in.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top