Stina
Stina

Reputation: 509

Oauth Foursquare on Android device

I am using this tutorial here to allow the user to sign in to Foursqaure on an android device http://blog.doityourselfandroid.com/2010/11/10/oauth-flow-in-android-app/ What are the parameters that I would use here, as foursquare only has authenticate and access token retrieval:

this.provider = new CommonsHttpOAuthProvider(
                    REQUEST_URL,
                    ACCESS_URL,
                    AUTHORIZE_URL);

Is there any other tutorials that may be useful?

Upvotes: 3

Views: 1089

Answers (1)

ddewaele
ddewaele

Reputation: 22603

check this post : http://groups.google.com/group/foursquare-api/web/oauth

It mentions the following OAuth endpoints

static final String FOURSQUARE_OAUTH_REQUEST_TOKEN = "http://foursquare.com/oauth/request_token";
static final String FOURSQUARE_OAUTH_ACCESS_TOKEN = "http://foursquare.com/oauth/access_token";
static final String FOURSQUARE_OAUTH_AUTHORIZE = "http://foursquare.com/oauth/authorize";

Keep in mind that the blog post and endpoints above are only valid for FourSquare V1 API.

V2 API uses OAuth 2.0. you might want to checkout the Leelo project for an OAuth 2.0 implementation that seems to work on Android.

Upvotes: 2

Related Questions