Package org.scribe.builder.api
Class TwitterApi
- java.lang.Object
-
- org.scribe.builder.api.DefaultApi10a
-
- org.scribe.builder.api.TwitterApi
-
- All Implemented Interfaces:
Api
- Direct Known Subclasses:
TwitterApi.SSL
public class TwitterApi extends DefaultApi10a
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TwitterApi.Authenticate
Twitter 'friendlier' authorization endpoint for OAuth.static class
TwitterApi.Authorize
Just an alias to the default (SSL) authorization endpoint.static class
TwitterApi.SSL
-
Constructor Summary
Constructors Constructor Description TwitterApi()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAccessTokenEndpoint()
Returns the URL that receives the access token requests.java.lang.String
getAuthorizationUrl(Token requestToken)
Returns the URL where you should redirect your users to authenticate your application.java.lang.String
getRequestTokenEndpoint()
Returns the URL that receives the request token requests.-
Methods inherited from class org.scribe.builder.api.DefaultApi10a
createService, getAccessTokenExtractor, getAccessTokenVerb, getBaseStringExtractor, getHeaderExtractor, getRequestTokenExtractor, getRequestTokenVerb, getSignatureService, getTimestampService
-
-
-
-
Method Detail
-
getAccessTokenEndpoint
public java.lang.String getAccessTokenEndpoint()
Description copied from class:DefaultApi10a
Returns the URL that receives the access token requests.- Specified by:
getAccessTokenEndpoint
in classDefaultApi10a
- Returns:
- access token URL
-
getRequestTokenEndpoint
public java.lang.String getRequestTokenEndpoint()
Description copied from class:DefaultApi10a
Returns the URL that receives the request token requests.- Specified by:
getRequestTokenEndpoint
in classDefaultApi10a
- Returns:
- request token URL
-
getAuthorizationUrl
public java.lang.String getAuthorizationUrl(Token requestToken)
Description copied from class:DefaultApi10a
Returns the URL where you should redirect your users to authenticate your application.- Specified by:
getAuthorizationUrl
in classDefaultApi10a
- Parameters:
requestToken
- the request token you need to authorize- Returns:
- the URL where you should redirect your users
-
-