Package | Description |
---|---|
twitter4j |
general package for Twitter4J
|
twitter4j.auth |
OAuth related classes
|
Modifier and Type | Method and Description |
---|---|
Twitter |
TwitterFactory.getInstance(AccessToken accessToken)
Returns a OAuth Authenticated instance.
consumer key and consumer Secret must be provided by twitter4j.properties, or system properties. Unlike OAuthSupport.setOAuthAccessToken(twitter4j.auth.AccessToken) , this factory method potentially returns a cached instance. |
Modifier and Type | Method and Description |
---|---|
AccessToken |
OAuthAuthorization.getOAuthAccessToken() |
AccessToken |
OAuthSupport.getOAuthAccessToken()
Returns an access token associated with this instance.
If no access token is associated with this instance, this will retrieve a new access token. |
AccessToken |
OAuthAuthorization.getOAuthAccessToken(RequestToken requestToken) |
AccessToken |
OAuthSupport.getOAuthAccessToken(RequestToken requestToken)
Retrieves an access token associated with the supplied request token and sets userId.
|
AccessToken |
OAuthAuthorization.getOAuthAccessToken(RequestToken requestToken,
String oauthVerifier) |
AccessToken |
OAuthSupport.getOAuthAccessToken(RequestToken requestToken,
String oauthVerifier)
Retrieves an access token associated with the supplied request token and sets userId.
|
AccessToken |
OAuthAuthorization.getOAuthAccessToken(String oauthVerifier) |
AccessToken |
OAuthSupport.getOAuthAccessToken(String oauthVerifier)
Retrieves an access token.
|
AccessToken |
OAuthAuthorization.getOAuthAccessToken(String screenName,
String password) |
AccessToken |
OAuthSupport.getOAuthAccessToken(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. |
Modifier and Type | Method and Description |
---|---|
void |
OAuthAuthorization.setOAuthAccessToken(AccessToken accessToken) |
void |
OAuthSupport.setOAuthAccessToken(AccessToken accessToken)
Sets the access token
|
Copyright © 2018. All rights reserved.