Jason Wiener
Jason Wiener

Reputation: 1909

Obtaining the user's username via Foursquare API

I'm trying to obtain the user's username aka http://foursquare.com/USERNAME via the API. There seems to be no support for it in the User JSON response nor can I seem to find it anywhere else in the docu. Shouldn't it be available via a User request???

Upvotes: 2

Views: 753

Answers (1)

akdotcom
akdotcom

Reputation: 4687

Foursquare identifies users by their user ID which is a number. Their default profile location is http://foursquare.com/user/USER_ID. You can also access a user's profile via http://foursquare.com/TWITTER_USERNAME if the user has connected their Twitter handle.

So given a user who has connected their twitter handle "FOOBAR" to foursquare, you can access their profile at http://foursquare.com/FOOBAR.

Upvotes: 2

Related Questions