org.springframework.social.twitter.connect
Class TwitterServiceProvider

java.lang.Object
  extended by org.springframework.social.oauth1.AbstractOAuth1ServiceProvider<TwitterApi>
      extended by org.springframework.social.twitter.connect.TwitterServiceProvider
All Implemented Interfaces:
OAuth1ServiceProvider<TwitterApi>, ServiceProvider<TwitterApi>

public class TwitterServiceProvider
extends AbstractOAuth1ServiceProvider<TwitterApi>

Twitter ServiceProvider implementation.


Constructor Summary
TwitterServiceProvider(java.lang.String consumerKey, java.lang.String consumerSecret)
           
 
Method Summary
 TwitterApi 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

TwitterServiceProvider

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

getApi

public TwitterApi 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<TwitterApi>
Specified by:
getApi in class AbstractOAuth1ServiceProvider<TwitterApi>
Parameters:
accessToken - the API access token
secret - the access token secret
Returns:
the binding to the service provider's API