Has anyone use any good Java API for four square oauth ? I am looking for something that is thread safe ?
Cheers,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I started by using foursquare4j, but was unable to get it to successfully retrieve an access token, which is the final step needed before calling signing calls to the Foursquare API.
So I switched to using signpost to get through the authentication bit and get an access token and secret, and then used foursquare4j as it encapsulates the API as a very nice object model.
I don’t know if signpost or foursquare4j are inherently thread safe – you could ask that question in their forums.
Below is a flatten version of the code I am using to authentication my App.
I’m using the Play framework – authorize() receives the initial request for authentication, and oauth() is where foursquare redirects to once the user has allowed access.