Package org.scribe.builder.api
Class SapoApi
- java.lang.Object
-
- org.scribe.builder.api.DefaultApi10a
-
- org.scribe.builder.api.SapoApi
-
- All Implemented Interfaces:
Api
public class SapoApi extends DefaultApi10a
-
-
Constructor Summary
Constructors Constructor Description SapoApi()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccessTokenEndpoint()
Returns the URL that receives the access token requests.Verb
getAccessTokenVerb()
Returns the verb for the access token endpoint (defaults to POST)String
getAuthorizationUrl(Token requestToken)
Returns the URL where you should redirect your users to authenticate your application.String
getRequestTokenEndpoint()
Returns the URL that receives the request token requests.Verb
getRequestTokenVerb()
Returns the verb for the request token endpoint (defaults to POST)-
Methods inherited from class org.scribe.builder.api.DefaultApi10a
createService, getAccessTokenExtractor, getBaseStringExtractor, getHeaderExtractor, getRequestTokenExtractor, getSignatureService, getTimestampService
-
-
-
-
Method Detail
-
getAccessTokenEndpoint
public 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 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 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
-
getRequestTokenVerb
public Verb getRequestTokenVerb()
Description copied from class:DefaultApi10a
Returns the verb for the request token endpoint (defaults to POST)- Overrides:
getRequestTokenVerb
in classDefaultApi10a
- Returns:
- request token endpoint verb
-
getAccessTokenVerb
public Verb getAccessTokenVerb()
Description copied from class:DefaultApi10a
Returns the verb for the access token endpoint (defaults to POST)- Overrides:
getAccessTokenVerb
in classDefaultApi10a
- Returns:
- access token endpoint verb
-
-