|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TwitterBase
Method Summary | |
---|---|
void |
addRateLimitStatusListener(RateLimitStatusListener listener)
Registers a RateLimitStatusListener for account associated rate limits |
Authorization |
getAuthorization()
Returns the authorization scheme for this instance. The returned type will be either of BasicAuthorization, OAuthAuthorization, or NullAuthorization |
Configuration |
getConfiguration()
Returns the configuration associated with this instance |
long |
getId()
Returns authenticating user's user id. This method may internally call verifyCredentials() on the first invocation if - this instance is authenticated by Basic and email address is supplied instead of screen name, or - this instance is authenticated by OAuth. |
java.lang.String |
getScreenName()
Returns authenticating user's screen name. This method may internally call verifyCredentials() on the first invocation if - this instance is authenticated by Basic and email address is supplied instead of screen name, or - this instance is authenticated by OAuth. Note that this method returns a transiently cached (will be lost upon serialization) screen name while it is possible to change a user's screen name. |
void |
shutdown()
Shuts down this instance and releases allocated resources. |
Method Detail |
---|
java.lang.String getScreenName() throws TwitterException, java.lang.IllegalStateException
TwitterException
- when verifyCredentials threw an exception.
java.lang.IllegalStateException
- if no credentials are supplied. i.e.) this is an anonymous Twitter instancelong getId() throws TwitterException, java.lang.IllegalStateException
TwitterException
- when verifyCredentials threw an exception.
java.lang.IllegalStateException
- if no credentials are supplied. i.e.) this is an anonymous Twitter instancevoid addRateLimitStatusListener(RateLimitStatusListener listener)
listener
- the listener to be addedAuthorization getAuthorization()
Configuration getConfiguration()
void shutdown()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |