Package org.scribe.builder.api
Class NeteaseWeibooApi
- java.lang.Object
-
- org.scribe.builder.api.DefaultApi10a
-
- org.scribe.builder.api.NeteaseWeibooApi
-
- All Implemented Interfaces:
Api
public class NeteaseWeibooApi extends DefaultApi10a
-
-
Constructor Summary
Constructors Constructor Description NeteaseWeibooApi()
-
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
getAuthenticateUrl(Token requestToken)
this method is for web client with callback url if you're creating a desktop client please call getAuthorizationUrl via http://open.t.163.com/wiki/index.php?title=%E8%AF%B7%E6%B1%82%E7%94%A8%E6%88%B7%E6%8E%88%E6%9D%83Token(oauth/authenticate)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
-
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
-
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
-
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
-
getAuthenticateUrl
public java.lang.String getAuthenticateUrl(Token requestToken)
this method is for web client with callback url if you're creating a desktop client please call getAuthorizationUrl via http://open.t.163.com/wiki/index.php?title=%E8%AF%B7%E6%B1%82%E7%94%A8%E6%88%B7%E6%8E%88%E6%9D%83Token(oauth/authenticate)
-
-