public interface AsyncOAuthSupport
Modifier and Type | Method and Description |
---|---|
void |
getOAuthAccessTokenAsync()
Returns an access token associated with this instance.
If no access token is associated with this instance, this will retrieve a new access token. |
void |
getOAuthAccessTokenAsync(RequestToken requestToken)
Retrieves an access token associated with the supplied request token and sets userId.
|
void |
getOAuthAccessTokenAsync(RequestToken requestToken,
String oauthVerifier)
Retrieves an access token associated with the supplied request token and sets userId.
|
void |
getOAuthAccessTokenAsync(String oauthVerifier)
Retrieves an access token.
|
void |
getOAuthAccessTokenAsync(String screenName,
String password)
Retrieves an access token associated with the supplied screen name and password using xAuth.
In order to get access acquire AccessToken using xAuth, you must apply by sending an email to api@twitter.com — all other applications will receive an HTTP 401 error. |
void |
getOAuthRequestTokenAsync()
Retrieves a request token
|
void |
getOAuthRequestTokenAsync(String callbackURL)
Retrieves a request token
|
void |
getOAuthRequestTokenAsync(String callbackURL,
String xAuthAccessType)
Retrieves a request token
|
void |
getOAuthRequestTokenAsync(String callbackURL,
String xAuthAccessType,
String xAuthMode)
Retrieves a request token
|
void getOAuthRequestTokenAsync()
void getOAuthRequestTokenAsync(String callbackURL)
callbackURL
- callback URLvoid getOAuthRequestTokenAsync(String callbackURL, String xAuthAccessType)
callbackURL
- callback URLxAuthAccessType
- Overrides the access level an application requests to a users account. Supported values are read or write. This parameter is intended to allow a developer to register a read/write application but also request read only access when appropriate.void getOAuthRequestTokenAsync(String callbackURL, String xAuthAccessType, String xAuthMode)
callbackURL
- callback URLxAuthAccessType
- Overrides the access level an application requests to a users account. Supported values are read or write. This parameter is intended to allow a developer to register a read/write application but also request read only access when appropriate.xAuthMode
- Set to reverse_auth to obtain a special request token to be used in the reverse auth process.void getOAuthAccessTokenAsync()
void getOAuthAccessTokenAsync(String oauthVerifier)
oauthVerifier
- OAuth verifier. AKA pin.void getOAuthAccessTokenAsync(RequestToken requestToken)
requestToken
- the request tokenvoid getOAuthAccessTokenAsync(RequestToken requestToken, String oauthVerifier)
requestToken
- the request tokenoauthVerifier
- OAuth verifier. AKA pin.void getOAuthAccessTokenAsync(String screenName, String password)
screenName
- the screen namepassword
- the passwordCopyright © 2018. All rights reserved.