|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.social.tripit.api.impl.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. |
protected RestTemplate |
getRestTemplate()
|
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. |
| 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 keyapiSecret - the application's API secretaccessToken - an access token acquired through OAuth authentication with LinkedInaccessTokenSecret - an access token secret acquired through OAuth authentication with LinkedIn| Method Detail |
|---|
public java.lang.String getProfileId()
TripItApi
getProfileId in interface TripItApipublic java.lang.String getProfileUrl()
TripItApi
getProfileUrl in interface TripItApipublic TripItProfile getUserProfile()
TripItApi
getUserProfile in interface TripItApipublic java.util.List<Trip> getUpcomingTrips()
TripItApi
getUpcomingTrips in interface TripItApiprotected RestTemplate getRestTemplate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||