org.springframework.social.tripit.connect
Class TripItServiceProvider

java.lang.Object
  extended by org.springframework.social.oauth1.AbstractOAuth1ServiceProvider<TripItApi>
      extended by org.springframework.social.tripit.connect.TripItServiceProvider
All Implemented Interfaces:
OAuth1ServiceProvider<TripItApi>, ServiceProvider<TripItApi>

public class TripItServiceProvider
extends AbstractOAuth1ServiceProvider<TripItApi>

TripIt ServiceProvider implementation.


Constructor Summary
TripItServiceProvider(java.lang.String consumerKey, java.lang.String consumerSecret)
           
 
Method Summary
 TripItApi getApi(java.lang.String accessToken, java.lang.String secret)
          Returns an API interface allowing the client application to access protected resources on behalf of a user.
 
Methods inherited from class org.springframework.social.oauth1.AbstractOAuth1ServiceProvider
getConsumerKey, getConsumerSecret, getOAuthOperations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TripItServiceProvider

public TripItServiceProvider(java.lang.String consumerKey,
                             java.lang.String consumerSecret)
Method Detail

getApi

public TripItApi getApi(java.lang.String accessToken,
                        java.lang.String secret)
Description copied from interface: OAuth1ServiceProvider
Returns an API interface allowing the client application to access protected resources on behalf of a user.

Specified by:
getApi in interface OAuth1ServiceProvider<TripItApi>
Specified by:
getApi in class AbstractOAuth1ServiceProvider<TripItApi>
Parameters:
accessToken - the API access token
secret - the access token secret
Returns:
the binding to the service provider's API