org.springframework.social.tripit.api
Interface TripItApi

All Known Implementing Classes:
TripItTemplate

public interface TripItApi

Interface specifying a basic set of operations for interacting with TripIt. Implemented by TripItTemplate. Many of the methods contained in this interface require OAuth authentication with TripIt. When a method's description speaks of the "current user", it is referring to the user for whom the access token has been issued.


Method Summary
 java.lang.String getProfileId()
          Retrieves the user's TripIt profile ID.
 java.lang.String getProfileUrl()
          Retrieves a URL to the user's public profile page.
 java.util.List<Trip> getUpcomingTrips()
          Retrieves a list of upcoming trips for the current user.
 TripItProfile getUserProfile()
          Retrieves the current user's TripIt profile details.
 

Method Detail

getProfileId

java.lang.String getProfileId()
Retrieves the user's TripIt profile ID.

Returns:
the user's TripIt profile ID.

getProfileUrl

java.lang.String getProfileUrl()
Retrieves a URL to the user's public profile page.

Returns:
a URL to the user's public profile page.

getUserProfile

TripItProfile getUserProfile()
Retrieves the current user's TripIt profile details.

Returns:
the user's profile data.

getUpcomingTrips

java.util.List<Trip> getUpcomingTrips()
Retrieves a list of upcoming trips for the current user.

Returns:
the user's upcoming trips.