org.springframework.social.gowalla.api.impl
Class GowallaTemplate

java.lang.Object
  extended by org.springframework.social.gowalla.api.impl.GowallaTemplate
All Implemented Interfaces:
GowallaApi

public class GowallaTemplate
extends java.lang.Object
implements GowallaApi

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

GowallaTemplate

public GowallaTemplate(java.lang.String accessToken)
Constructs a GowallaTemplate with the minimal amount of information required to sign requests with an OAuth Authorization header.

Parameters:
accessToken - An access token granted to the application after OAuth authentication.
Method Detail

getProfileId

public java.lang.String getProfileId()
Description copied from interface: GowallaApi
Retrieves the user's Gowalla profile ID.

Specified by:
getProfileId in interface GowallaApi
Returns:
the user's Gowalla profile ID.

getUserProfile

public GowallaProfile getUserProfile()
Description copied from interface: GowallaApi
Gets the authenticating user's profile data.

Specified by:
getUserProfile in interface GowallaApi
Returns:
profile information for the authenticating user.

getUserProfile

public GowallaProfile getUserProfile(java.lang.String userId)
Description copied from interface: GowallaApi
Gets a specific user's profile data.

Specified by:
getUserProfile in interface GowallaApi
Parameters:
userId - the user ID to retrieve profile data for
Returns:
profile information for the specified user.

getProfileUrl

public java.lang.String getProfileUrl()
Description copied from interface: GowallaApi
Retrieves a URL to the user's public profile page.

Specified by:
getProfileUrl in interface GowallaApi
Returns:
a URL to the user's public profile page.

getTopCheckins

public java.util.List<Checkin> getTopCheckins(java.lang.String userId)
Description copied from interface: GowallaApi
Retrieves a list of the spots that the user has checked into most.

Specified by:
getTopCheckins in interface GowallaApi
Returns:
a list of Checkins that the user has visited the most.

getRestTemplate

protected RestTemplate getRestTemplate()