|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.social.gowalla.api.impl.GowallaTemplate
public class GowallaTemplate
The central class for interacting with the Gowalla API.
Constructor Summary | |
---|---|
GowallaTemplate(java.lang.String accessToken)
Constructs a GowallaTemplate with the minimal amount of information required to sign requests with an OAuth Authorization header. |
Method Summary | |
---|---|
java.lang.String |
getProfileId()
Retrieves the user's Gowalla profile ID. |
java.lang.String |
getProfileUrl()
Retrieves a URL to the user's public profile page. |
protected RestTemplate |
getRestTemplate()
|
java.util.List<Checkin> |
getTopCheckins(java.lang.String userId)
Retrieves a list of the spots that the user has checked into most. |
GowallaProfile |
getUserProfile()
Gets the authenticating user's profile data. |
GowallaProfile |
getUserProfile(java.lang.String userId)
Gets a specific user's profile data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GowallaTemplate(java.lang.String accessToken)
Authorization
header.
accessToken
- An access token granted to the application after OAuth authentication.Method Detail |
---|
public java.lang.String getProfileId()
GowallaApi
getProfileId
in interface GowallaApi
public GowallaProfile getUserProfile()
GowallaApi
getUserProfile
in interface GowallaApi
public GowallaProfile getUserProfile(java.lang.String userId)
GowallaApi
getUserProfile
in interface GowallaApi
userId
- the user ID to retrieve profile data for
public java.lang.String getProfileUrl()
GowallaApi
getProfileUrl
in interface GowallaApi
public java.util.List<Checkin> getTopCheckins(java.lang.String userId)
GowallaApi
getTopCheckins
in interface GowallaApi
Checkin
s that the user has visited the most.protected RestTemplate getRestTemplate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |