desade
desade

Reputation: 33

How to get checkins of a user's particular friend from Foursquare?

I am trying to get checkin information of a user's particular friend in my application. In application, user authenticates to foursquare at the start which make me able to get his/her friend list.

I am getting the friend list with this API end point : https://api.foursquare.com/v2/users/self/friends. According to documentation it's response should include user objects which should have include checkins field but it seems there is no checkins field in the response. I can get other informations like first name, bio etc.

I also tried this API endpoint with user ID of friend which I want to get information of https://api.foursquare.com/v2/users/USER_ID/checkins but it returns an error states that I am not authorized for getting this information.

What am I doing wrong? Should I be authorized for this information since the information is about checkins of user's friends?

Upvotes: 3

Views: 462

Answers (2)

Aram
Aram

Reputation: 379

As stated here https://developer.foursquare.com/docs/users/checkins:

USER_ID | self | For now, only self is supported

Upvotes: 0

octopi
octopi

Reputation: 2004

Unfortunately this isn't a use case that's supported very well by the API. The way to see a list of check-ins of a particular user is through users/self/checkins. This will return the check-ins of the owner of the OAuth token that made the call.

Upvotes: 0

Related Questions