|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.social.tripit.TripItTemplate
public class TripItTemplate
The central class for interacting with TripIt.
TripIt operations require OAuth 1 authentication. Therefore TripIt template
must be given the minimal amount of information required to sign requests to
the TripIt API with an OAuth Authorization
header.
Constructor Summary | |
---|---|
TripItTemplate(java.lang.String apiKey,
java.lang.String apiSecret,
java.lang.String accessToken,
java.lang.String accessTokenSecret)
Constructs a TripItTemplate 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 TripIt profile ID. |
java.lang.String |
getProfileUrl()
Retrieves a URL to the user's public profile page. |
java.util.List<Trip> |
getTrips()
Retrieves a list of upcoming trips for the current user. |
TripItProfile |
getUserProfile()
Retrieves the current user's TripIt profile details. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TripItTemplate(java.lang.String apiKey, java.lang.String apiSecret, java.lang.String accessToken, java.lang.String accessTokenSecret)
Authorization
header.
apiKey
- The application's API key as given by TripIt when registering
the application.apiSecret
- The application's API secret as given by TripIt when
registering the application.accessToken
- An access token granted to the application after OAuth
authentication.accessTokenSecret
- An access token secret granted to the application after OAuth
authentication.Method Detail |
---|
public java.lang.String getProfileId()
TripItOperations
getProfileId
in interface TripItOperations
public java.lang.String getProfileUrl()
TripItOperations
getProfileUrl
in interface TripItOperations
public TripItProfile getUserProfile()
TripItOperations
getUserProfile
in interface TripItOperations
public java.util.List<Trip> getTrips()
TripItOperations
getTrips
in interface TripItOperations
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |