Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top