Uses of Class
twitter4j.TwitterException

Packages that use TwitterException
twitter4j   
twitter4j.api   
twitter4j.http   
 

Uses of TwitterException in twitter4j
 

Methods in twitter4j that return TwitterException
static TwitterException TwitterException.createRateLimitedTwitterException(java.lang.String msg, int statusCode, int retryAfter)
           
 

Methods in twitter4j with parameters of type TwitterException
 void TwitterListener.onException(TwitterException te, TwitterMethod method)
           
 void TwitterAdapter.onException(TwitterException ex, TwitterMethod method)
           
 

Methods in twitter4j that throw TwitterException
 UserList Twitter.addUserListMember(int listId, int userId)
          Adds a member to a list.
 User Twitter.checkUserListMembership(java.lang.String listOwnerScreenName, int listId, int userId)
          Check if a user is a member of the specified list.

This method calls http://api.twitter.com/1/[listOwner]/[listId]/members/id.json
 User Twitter.checkUserListSubscription(java.lang.String listOwnerScreenName, int listId, int userId)
          Check if the specified user is a subscriber of the specified list.
 User Twitter.createBlock(int userId)
          Blocks the user specified in the ID parameter as the authenticating user.
 User Twitter.createBlock(java.lang.String screenName)
          Blocks the user specified in the ID parameter as the authenticating user.
static ResponseList<Category> CategoryJSONImpl.createCategoriesList(twitter4j.internal.http.HttpResponse res)
           
static ResponseList<Category> CategoryJSONImpl.createCategoriesList(twitter4j.internal.org.json.JSONArray array, twitter4j.internal.http.HttpResponse res)
           
 Status Twitter.createFavorite(long id)
          Favorites the status specified in the ID parameter as the authenticating user.
 User Twitter.createFriendship(int userId)
          Befriends the user specified in the ID parameter as the authenticating user.
 User Twitter.createFriendship(int userId, boolean follow)
          Befriends the user specified in the ID parameter as the authenticating user.
 User Twitter.createFriendship(java.lang.String screenName)
          Befriends the user specified in the ID parameter as the authenticating user.
 User Twitter.createFriendship(java.lang.String screenName, boolean follow)
          Befriends the user specified in the ID parameter as the authenticating user.
 SavedSearch Twitter.createSavedSearch(java.lang.String query)
          Retrieve the data for a saved search owned by the authenticating user specified by the given id.
 UserList Twitter.createUserList(java.lang.String listName, boolean isPublicList, java.lang.String description)
          Creates a new list for the authenticated user.
 UserList Twitter.deleteUserListMember(int listId, int userId)
          Removes the specified member from the list.
 User Twitter.destroyBlock(int userId)
          Un-blocks the user specified in the ID parameter as the authenticating user.
 User Twitter.destroyBlock(java.lang.String screen_name)
          Un-blocks the user specified in the ID parameter as the authenticating user.
 DirectMessage Twitter.destroyDirectMessage(int id)
          Destroys the direct message specified in the required ID parameter.
 Status Twitter.destroyFavorite(long id)
          Un-favorites the status specified in the ID parameter as the authenticating user.
 User Twitter.destroyFriendship(int userId)
          Discontinues friendship with the user specified in the ID parameter as the authenticating user.
 User Twitter.destroyFriendship(java.lang.String screenName)
          Discontinues friendship with the user specified in the ID parameter as the authenticating user.
 SavedSearch Twitter.destroySavedSearch(int id)
          Destroys a saved search for the authenticated user.
 Status Twitter.destroyStatus(long statusId)
          Destroys the status specified by the required ID parameter.
 UserList Twitter.destroyUserList(int listId)
          Deletes the specified list.
 User Twitter.disableNotification(int userId)
          Disables notifications for updates from the specified user to the authenticating user.
 User Twitter.disableNotification(java.lang.String screenName)
          Disables notifications for updates from the specified user to the authenticating user.
 User Twitter.enableNotification(int userId)
          Enables notifications for updates from the specified user to the authenticating user.
 User Twitter.enableNotification(java.lang.String screenName)
          Enables notifications for updates from the specified user to the authenticating user.
 boolean Twitter.existsBlock(int userId)
          Tests if a friendship exists between two users.
 boolean Twitter.existsBlock(java.lang.String screenName)
          Tests if a friendship exists between two users.
 boolean Twitter.existsFriendship(java.lang.String userA, java.lang.String userB)
          Tests if a friendship exists between two users.
 ResponseList<Location> Twitter.getAvailableTrends()
          Returns the locations that Twitter has trending topic information for.
 ResponseList<Location> Twitter.getAvailableTrends(GeoLocation location)
          Returns the sorted locations that Twitter has trending topic information for.
 ResponseList<User> Twitter.getBlockingUsers()
          Returns a list of user objects that the authenticating user is blocking.
 ResponseList<User> Twitter.getBlockingUsers(int page)
          Returns a list of user objects that the authenticating user is blocking.
 IDs Twitter.getBlockingUsersIDs()
          Returns an array of numeric user ids the authenticating user is blocking.
 Trends Twitter.getCurrentTrends()
          Returns the current top 10 trending topics on Twitter.
 Trends Twitter.getCurrentTrends(boolean excludeHashTags)
          Returns the current top 10 trending topics on Twitter.
 java.util.List<Trends> Twitter.getDailyTrends()
          Returns the top 20 trending topics for each hour in a given day.
 java.util.List<Trends> Twitter.getDailyTrends(java.util.Date date, boolean excludeHashTags)
          Returns the top 20 trending topics for each hour in a given day.
 ResponseList<DirectMessage> Twitter.getDirectMessages()
          Returns a list of the direct messages sent to the authenticating user.
 ResponseList<DirectMessage> Twitter.getDirectMessages(Paging paging)
          Returns a list of the direct messages sent to the authenticating user.
 ResponseList<Status> Twitter.getFavorites()
          Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
 ResponseList<Status> Twitter.getFavorites(int page)
          Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
 ResponseList<Status> Twitter.getFavorites(java.lang.String id)
          Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
 ResponseList<Status> Twitter.getFavorites(java.lang.String id, int page)
          Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
 StatusStream TwitterStream.getFilterStream(int count, int[] follow, java.lang.String[] track)
          Returns public statuses that match one or more filter predicates.
 StatusStream TwitterStream.getFirehoseStream(int count)
          Returns a status stream of all public statuses.
 IDs Twitter.getFollowersIDs()
          Returns an array of numeric IDs for every user the specified user is followed by.
 IDs Twitter.getFollowersIDs(int userId)
          Returns an array of numeric IDs for every user the specified user is followed by.
 IDs Twitter.getFollowersIDs(int userId, long cursor)
          Returns an array of numeric IDs for every user the specified user is followed by.
 IDs Twitter.getFollowersIDs(long cursor)
          Returns an array of numeric IDs for every user the specified user is followed by.
 IDs Twitter.getFollowersIDs(java.lang.String screenName)
          Returns an array of numeric IDs for every user the specified user is followed by.
 IDs Twitter.getFollowersIDs(java.lang.String screenName, long cursor)
          Returns an array of numeric IDs for every user the specified user is followed by.
 PagableResponseList<User> Twitter.getFollowersStatuses()
          Returns the authenticating user's followers, each with current status inline.
 PagableResponseList<User> Twitter.getFollowersStatuses(int userId)
          Returns the specified user's followers, each with current status inline.
 PagableResponseList<User> Twitter.getFollowersStatuses(int userId, long cursor)
          Returns the specified user's followers, each with current status inline.
 PagableResponseList<User> Twitter.getFollowersStatuses(long cursor)
          Returns the authenticating user's followers, each with current status inline.
 PagableResponseList<User> Twitter.getFollowersStatuses(java.lang.String screenName)
          Returns the specified user's followers, each with current status inline.
 PagableResponseList<User> Twitter.getFollowersStatuses(java.lang.String screenName, long cursor)
          Returns the specified user's followers, each with current status inline.
 IDs Twitter.getFriendsIDs()
          Returns an array of numeric IDs for every user the authenticating user is following.
 IDs Twitter.getFriendsIDs(int userId)
          Returns an array of numeric IDs for every user the specified user is following.
all IDs are attempted to be returned, but large sets of IDs will likely fail with timeout errors.
 IDs Twitter.getFriendsIDs(int userId, long cursor)
          Returns an array of numeric IDs for every user the specified user is following.
 IDs Twitter.getFriendsIDs(long cursor)
          Returns an array of numeric IDs for every user the authenticating user is following.
 IDs Twitter.getFriendsIDs(java.lang.String screenName)
          Returns an array of numeric IDs for every user the specified user is following.
 IDs Twitter.getFriendsIDs(java.lang.String screenName, long cursor)
          Returns an array of numeric IDs for every user the specified user is following.
 PagableResponseList<User> Twitter.getFriendsStatuses()
          Returns the specified user's friends, each with current status inline.
 PagableResponseList<User> Twitter.getFriendsStatuses(int userId)
          Returns the specified user's friends, each with current status inline.
 PagableResponseList<User> Twitter.getFriendsStatuses(int userId, long cursor)
          Returns the specified user's friends, each with current status inline.
 PagableResponseList<User> Twitter.getFriendsStatuses(long cursor)
          Returns the user's friends, each with current status inline.

This method calls http://api.twitter.com/1/statuses/friends
 PagableResponseList<User> Twitter.getFriendsStatuses(java.lang.String screenName)
          Returns the specified user's friends, each with current status inline.
 PagableResponseList<User> Twitter.getFriendsStatuses(java.lang.String screenName, long cursor)
          Returns the specified user's friends, each with current status inline.
 ResponseList<Status> Twitter.getFriendsTimeline()
          Returns the 20 most recent statuses posted in the last 24 hours from the authenticating1 user and that user's friends.
 ResponseList<Status> Twitter.getFriendsTimeline(Paging paging)
          Returns the 20 most recent statuses posted in the last 24 hours from the specified userid.
 Place Twitter.getGeoDetails(java.lang.String id)
          Find out more details of a place that was returned from the geo/reverse_geocode method.
 ResponseList<Status> Twitter.getHomeTimeline()
          Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends.
 ResponseList<Status> Twitter.getHomeTimeline(Paging paging)
          Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends.
 int Twitter.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.
 int AsyncTwitter.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.
 StatusStream TwitterStream.getLinksStream(int count)
          Returns a status stream of all public statuses containing links.
 Trends Twitter.getLocationTrends(int woeid)
          Returns the top 10 trending topics for a specific location Twitter has trending topic information for.
 ResponseList<Status> Twitter.getMentions()
          Returns the 20 most recent mentions (status containing @username) for the authenticating user.
 ResponseList<Status> Twitter.getMentions(Paging paging)
          Returns the 20 most recent mentions (status containing @username) for the authenticating user.
 ResponseList<Place> Twitter.getNearbyPlaces(GeoQuery query)
          Search for places (cities and neighborhoods) that can be attached to a statuses/update.
 AccessToken Twitter.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 AsyncTwitter.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 Twitter.getOAuthAccessToken(RequestToken requestToken)
          Retrieves an access token associated with the supplied request token and sets userId.
 AccessToken AsyncTwitter.getOAuthAccessToken(RequestToken requestToken)
          Retrieves an access token associated with the supplied request token and sets userId.
 AccessToken Twitter.getOAuthAccessToken(RequestToken requestToken, java.lang.String oauthVerifier)
          Retrieves an access token associated with the supplied request token and sets userId.
 AccessToken AsyncTwitter.getOAuthAccessToken(RequestToken requestToken, java.lang.String oauthVerifier)
          Retrieves an access token associated with the supplied request token and sets userId.
 AccessToken Twitter.getOAuthAccessToken(java.lang.String oauthVerifier)
          Retrieves an access token.
 AccessToken AsyncTwitter.getOAuthAccessToken(java.lang.String oauthVerifier)
          Retrieves an access token.
 AccessToken Twitter.getOAuthAccessToken(java.lang.String token, java.lang.String tokenSecret)
          Deprecated. Use TwitterFactory.getInstance(AccessToken accessToken)
 AccessToken AsyncTwitter.getOAuthAccessToken(java.lang.String token, java.lang.String tokenSecret)
          Deprecated. Use TwitterFactory.getInstance(AccessToken accessToken)
 AccessToken Twitter.getOAuthAccessToken(java.lang.String token, java.lang.String tokenSecret, java.lang.String pin)
          Retrieves an access token associated with the supplied request token.
 AccessToken AsyncTwitter.getOAuthAccessToken(java.lang.String token, java.lang.String tokenSecret, java.lang.String pin)
          Retrieves an access token associated with the supplied request token.
 RequestToken Twitter.getOAuthRequestToken()
          Retrieves a request token
 RequestToken AsyncTwitter.getOAuthRequestToken()
          Retrieves a request token
 RequestToken Twitter.getOAuthRequestToken(java.lang.String callbackUrl)
          Retrieves a request token
 RequestToken AsyncTwitter.getOAuthRequestToken(java.lang.String callbackUrl)
          Retrieves a request token
 ResponseList<Status> Twitter.getPublicTimeline()
          Returns the 20 most recent statuses from non-protected users who have set a custom user icon.
 RateLimitStatus Twitter.getRateLimitStatus()
          Returns the remaining number of API requests available to the requesting user before the API limit is reached for the current hour.
 ResponseList<Status> Twitter.getRetweetedByMe()
          Returns the 20 most recent retweets posted by the authenticating user.
 ResponseList<Status> Twitter.getRetweetedByMe(Paging paging)
          Returns the 20 most recent retweets posted by the authenticating user.
 ResponseList<Status> Twitter.getRetweetedToMe()
          Returns the 20 most recent retweets posted by the authenticating user's friends.
 ResponseList<Status> Twitter.getRetweetedToMe(Paging paging)
          Returns the 20 most recent retweets posted by the authenticating user's friends.
 ResponseList<Status> Twitter.getRetweets(long statusId)
          Returns up to 100 of the first retweets of a given tweet.
 ResponseList<Status> Twitter.getRetweetsOfMe()
          Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
 ResponseList<Status> Twitter.getRetweetsOfMe(Paging paging)
          Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
 StatusStream TwitterStream.getRetweetStream()
          Returns a stream of all retweets.
 StatusStream TwitterStream.getSampleStream()
          Returns a stream of random sample of all public statuses.
 java.util.List<SavedSearch> Twitter.getSavedSearches()
          Returns the authenticated user's saved search queries.
 java.lang.String Twitter.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.
 java.lang.String AsyncTwitter.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.
 ResponseList<DirectMessage> Twitter.getSentDirectMessages()
          Returns a list of the direct messages sent by the authenticating user.
 ResponseList<DirectMessage> Twitter.getSentDirectMessages(Paging paging)
          Returns a list of the direct messages sent by the authenticating user.
 ResponseList<Category> Twitter.getSuggestedUserCategories()
          Access to Twitter's suggested user list.
 Trends Twitter.getTrends()
          Returns the top ten topics that are currently trending on Twitter.
 PagableResponseList<User> Twitter.getUserListMembers(java.lang.String listOwnerScreenName, int listId, long cursor)
          Returns the members of the specified list.
 PagableResponseList<UserList> Twitter.getUserListMemberships(java.lang.String listOwnerScreenName, long cursor)
          List the lists the specified user has been added to.
 PagableResponseList<UserList> Twitter.getUserLists(java.lang.String listOwnerScreenName, long cursor)
          List the lists of the specified user.
 ResponseList<Status> Twitter.getUserListStatuses(java.lang.String listOwnerScreenName, int id, Paging paging)
          Show tweet timeline for members of the specified list.
 PagableResponseList<User> Twitter.getUserListSubscribers(java.lang.String listOwnerScreenName, int listId, long cursor)
          Returns the subscribers of the specified list.
 PagableResponseList<UserList> Twitter.getUserListSubscriptions(java.lang.String listOwnerScreenName, long cursor)
          List the lists the specified user follows.
 ResponseList<User> Twitter.getUserSuggestions(java.lang.String categorySlug)
          Access the users in a given category of the Twitter suggested user list.
 ResponseList<Status> Twitter.getUserTimeline()
          Returns the most recent statuses posted in the last 24 hours from the authenticating user.
 ResponseList<Status> Twitter.getUserTimeline(int userId)
          Returns the most recent statuses posted in the last 24 hours from the specified userid.
 ResponseList<Status> Twitter.getUserTimeline(int userId, Paging paging)
          Returns the most recent statuses posted in the last 24 hours from the specified screen name.
 ResponseList<Status> Twitter.getUserTimeline(Paging paging)
          Returns the most recent statuses posted in the last 24 hours from the authenticating user.
 ResponseList<Status> Twitter.getUserTimeline(java.lang.String screenName)
          Returns the most recent statuses posted in the last 24 hours from the specified userid.
 ResponseList<Status> Twitter.getUserTimeline(java.lang.String screenName, Paging paging)
          Returns the most recent statuses posted in the last 24 hours from the specified screen name.
 java.util.List<Trends> Twitter.getWeeklyTrends()
          Returns the top 30 trending topics for each day in a given week.
 java.util.List<Trends> Twitter.getWeeklyTrends(java.util.Date date, boolean excludeHashTags)
          Returns the top 30 trending topics for each day in a given week.
 ResponseList<User> Twitter.lookupUsers(int[] ids)
          Return up to 20 users worth of extended information, specified by either ID.
 ResponseList<User> Twitter.lookupUsers(java.lang.String[] screenNames)
          Return up to 20 users worth of extended information, specified by screen name.
 void StatusStream.next(StatusListener listener)
          Reads next status from this stream.
 User Twitter.reportSpam(int userId)
          The user specified in the id is blocked by the authenticated user and reported as a spammer.
 void AsyncTwitter.reportSpam(int userId)
          The user specified in the id is blocked by the authenticated user and reported as a spammer.
 User Twitter.reportSpam(java.lang.String screenName)
          The user specified in the id is blocked by the authenticated user and reported as a spammer.
 void AsyncTwitter.reportSpam(java.lang.String screenName)
          The user specified in the id is blocked by the authenticated user and reported as a spammer.
 Status Twitter.retweetStatus(long statusId)
          Retweets a tweet.
 ResponseList<Place> Twitter.reverseGeoCode(GeoQuery query)
          Search for places (cities and neighborhoods) that can be attached to a statuses/update.
 QueryResult Twitter.search(Query query)
          Returns tweets that match a specified query.
 ResponseList<User> Twitter.searchUsers(java.lang.String query, int page)
          Run a search for users similar to Find People button on Twitter.com; the same results returned by people search on Twitter.com will be returned by using this API (about being listed in the People Search).
 DirectMessage Twitter.sendDirectMessage(int userId, java.lang.String text)
          Sends a new direct message to the specified user from the authenticating user.
 DirectMessage Twitter.sendDirectMessage(java.lang.String screenName, java.lang.String text)
          Sends a new direct message to the specified user from the authenticating user.
 Relationship Twitter.showFriendship(int sourceId, int targetId)
          Gets the detailed relationship status between a source user and a target user
This method calls http://api.twitter.com/1/friendships/show.json
 Relationship Twitter.showFriendship(java.lang.String sourceScreenName, java.lang.String targetScreenName)
          Gets the detailed relationship status between a source user and a target user
This method calls http://api.twitter.com/1/friendships/show.json
 SavedSearch Twitter.showSavedSearch(int id)
          Retrieve the data for a saved search owned by the authenticating user specified by the given id.
 Status Twitter.showStatus(long id)
          Returns a single status, specified by the id parameter.
 User Twitter.showUser(int userId)
          Returns extended information of a given user, specified by ID.
 User Twitter.showUser(java.lang.String screenName)
          Returns extended information of a given user, specified by screen name as per the required id parameter below.
 UserList Twitter.showUserList(java.lang.String listOwnerScreenName, int id)
          Show the specified list.
 UserList Twitter.subscribeUserList(java.lang.String listOwnerScreenName, int listId)
          Make the authenticated user follow the specified list.
 boolean Twitter.test()
          Returns the string "ok" in the requested format with a 200 OK HTTP status code.
 UserList Twitter.unsubscribeUserList(java.lang.String listOwnerScreenName, int listId)
          Unsubscribes the authenticated user form the specified list.
 User Twitter.updateDeliveryDevice(Device device)
          Sets which device Twitter delivers updates to for the authenticating user.
 User Twitter.updateProfile(java.lang.String name, java.lang.String email, java.lang.String url, java.lang.String location, java.lang.String description)
          Sets values that users are able to set under the "Account" tab of their settings page.
 User Twitter.updateProfileBackgroundImage(java.io.File image, boolean tile)
          Updates the authenticating user's profile background image.
 User Twitter.updateProfileColors(java.lang.String profileBackgroundColor, java.lang.String profileTextColor, java.lang.String profileLinkColor, java.lang.String profileSidebarFillColor, java.lang.String profileSidebarBorderColor)
          Sets one or more hex values that control the color scheme of the authenticating user's profile page on twitter.com.
 User Twitter.updateProfileImage(java.io.File image)
          Updates the authenticating user's profile image.
 Status Twitter.updateStatus(StatusUpdate latestStatus)
          Updates the user's status.
 Status Twitter.updateStatus(java.lang.String status)
          Updates the user's status.
 Status Twitter.updateStatus(java.lang.String status, GeoLocation location)
          Updates the user's status.
 Status Twitter.updateStatus(java.lang.String status, long inReplyToStatusId)
          Updates the user's status.
 Status Twitter.updateStatus(java.lang.String status, long inReplyToStatusId, GeoLocation location)
          Updates the user's status.
 UserList Twitter.updateUserList(int listId, java.lang.String newListName, boolean isPublicList, java.lang.String newDescription)
          Updates the specified list.
 User Twitter.verifyCredentials()
          Returns an HTTP 200 OK response code and a representation of the requesting user if authentication was successful; returns a 401 status code and an error message if not.
 

Uses of TwitterException in twitter4j.api
 

Methods in twitter4j.api that throw TwitterException
 UserList ListMembersMethods.addUserListMember(int listId, int userId)
          Adds a member to a list.
 User ListMembersMethods.checkUserListMembership(java.lang.String listOwnerScreenName, int listId, int userId)
          Check if a user is a member of the specified list.

This method calls http://api.twitter.com/1/[listOwner]/[listId]/members/id.json
 User ListSubscribersMethods.checkUserListSubscription(java.lang.String listOwnerScreenName, int listId, int userId)
          Check if the specified user is a subscriber of the specified list.
 User BlockMethods.createBlock(int userId)
          Blocks the user specified in the ID parameter as the authenticating user.
 User BlockMethods.createBlock(java.lang.String screenName)
          Blocks the user specified in the ID parameter as the authenticating user.
 Status FavoriteMethods.createFavorite(long id)
          Favorites the status specified in the ID parameter as the authenticating user.
 User FriendshipMethods.createFriendship(int userId)
          Befriends the user specified in the ID parameter as the authenticating user.
 User FriendshipMethods.createFriendship(int userId, boolean follow)
          Befriends the user specified in the ID parameter as the authenticating user.
 User FriendshipMethods.createFriendship(java.lang.String screenName)
          Befriends the user specified in the ID parameter as the authenticating user.
 User FriendshipMethods.createFriendship(java.lang.String screenName, boolean follow)
          Befriends the user specified in the ID parameter as the authenticating user.
 SavedSearch SavedSearchesMethods.createSavedSearch(java.lang.String query)
          Retrieve the data for a saved search owned by the authenticating user specified by the given id.
 UserList ListMethods.createUserList(java.lang.String listName, boolean isPublicList, java.lang.String description)
          Creates a new list for the authenticated user.
 UserList ListMembersMethods.deleteUserListMember(int listId, int userId)
          Removes the specified member from the list.
 User BlockMethods.destroyBlock(int userId)
          Un-blocks the user specified in the ID parameter as the authenticating user.
 User BlockMethods.destroyBlock(java.lang.String screen_name)
          Un-blocks the user specified in the ID parameter as the authenticating user.
 DirectMessage DirectMessageMethods.destroyDirectMessage(int id)
          Destroys the direct message specified in the required ID parameter.
 Status FavoriteMethods.destroyFavorite(long id)
          Un-favorites the status specified in the ID parameter as the authenticating user.
 User FriendshipMethods.destroyFriendship(int userId)
          Discontinues friendship with the user specified in the ID parameter as the authenticating user.
 User FriendshipMethods.destroyFriendship(java.lang.String screenName)
          Discontinues friendship with the user specified in the ID parameter as the authenticating user.
 SavedSearch SavedSearchesMethods.destroySavedSearch(int id)
          Destroys a saved search for the authenticated user.
 Status StatusMethods.destroyStatus(long statusId)
          Destroys the status specified by the required ID parameter.
 UserList ListMethods.destroyUserList(int listId)
          Deletes the specified list.
 User NotificationMethods.disableNotification(int userId)
          Disables notifications for updates from the specified user to the authenticating user.
 User NotificationMethods.disableNotification(java.lang.String screenName)
          Disables notifications for updates from the specified user to the authenticating user.
 User NotificationMethods.enableNotification(int userId)
          Enables notifications for updates from the specified user to the authenticating user.
 User NotificationMethods.enableNotification(java.lang.String screenName)
          Enables notifications for updates from the specified user to the authenticating user.
 boolean BlockMethods.existsBlock(int userId)
          Tests if a friendship exists between two users.
 boolean BlockMethods.existsBlock(java.lang.String screenName)
          Tests if a friendship exists between two users.
 boolean FriendshipMethods.existsFriendship(java.lang.String userA, java.lang.String userB)
          Tests if a friendship exists between two users.
 ResponseList<Location> LocalTrendsMethods.getAvailableTrends()
          Returns the locations that Twitter has trending topic information for.
 ResponseList<Location> LocalTrendsMethods.getAvailableTrends(GeoLocation location)
          Returns the sorted locations that Twitter has trending topic information for.
 ResponseList<User> BlockMethods.getBlockingUsers()
          Returns a list of user objects that the authenticating user is blocking.
 ResponseList<User> BlockMethods.getBlockingUsers(int page)
          Returns a list of user objects that the authenticating user is blocking.
 IDs BlockMethods.getBlockingUsersIDs()
          Returns an array of numeric user ids the authenticating user is blocking.
 Trends SearchMethods.getCurrentTrends()
          Returns the current top 10 trending topics on Twitter.
 Trends SearchMethods.getCurrentTrends(boolean excludeHashTags)
          Returns the current top 10 trending topics on Twitter.
 java.util.List<Trends> SearchMethods.getDailyTrends()
          Returns the top 20 trending topics for each hour in a given day.
 java.util.List<Trends> SearchMethods.getDailyTrends(java.util.Date date, boolean excludeHashTags)
          Returns the top 20 trending topics for each hour in a given day.
 ResponseList<DirectMessage> DirectMessageMethods.getDirectMessages()
          Returns a list of the direct messages sent to the authenticating user.
 ResponseList<DirectMessage> DirectMessageMethods.getDirectMessages(Paging paging)
          Returns a list of the direct messages sent to the authenticating user.
 ResponseList<Status> FavoriteMethods.getFavorites()
          Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
 ResponseList<Status> FavoriteMethods.getFavorites(int page)
          Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
 ResponseList<Status> FavoriteMethods.getFavorites(java.lang.String id)
          Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
 ResponseList<Status> FavoriteMethods.getFavorites(java.lang.String id, int page)
          Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
 IDs SocialGraphMethods.getFollowersIDs()
          Returns an array of numeric IDs for every user the specified user is followed by.
 IDs SocialGraphMethods.getFollowersIDs(int userId)
          Returns an array of numeric IDs for every user the specified user is followed by.
 IDs SocialGraphMethods.getFollowersIDs(int userId, long cursor)
          Returns an array of numeric IDs for every user the specified user is followed by.
 IDs SocialGraphMethods.getFollowersIDs(long cursor)
          Returns an array of numeric IDs for every user the specified user is followed by.
 IDs SocialGraphMethods.getFollowersIDs(java.lang.String screenName)
          Returns an array of numeric IDs for every user the specified user is followed by.
 IDs SocialGraphMethods.getFollowersIDs(java.lang.String screenName, long cursor)
          Returns an array of numeric IDs for every user the specified user is followed by.
 PagableResponseList<User> UserMethods.getFollowersStatuses()
          Returns the authenticating user's followers, each with current status inline.
 PagableResponseList<User> UserMethods.getFollowersStatuses(int userId)
          Returns the specified user's followers, each with current status inline.
 PagableResponseList<User> UserMethods.getFollowersStatuses(int userId, long cursor)
          Returns the specified user's followers, each with current status inline.
 PagableResponseList<User> UserMethods.getFollowersStatuses(long cursor)
          Returns the authenticating user's followers, each with current status inline.
 PagableResponseList<User> UserMethods.getFollowersStatuses(java.lang.String screenName)
          Returns the specified user's followers, each with current status inline.
 PagableResponseList<User> UserMethods.getFollowersStatuses(java.lang.String screenName, long cursor)
          Returns the specified user's followers, each with current status inline.
 IDs SocialGraphMethods.getFriendsIDs()
          Returns an array of numeric IDs for every user the authenticating user is following.
 IDs SocialGraphMethods.getFriendsIDs(int userId)
          Returns an array of numeric IDs for every user the specified user is following.
all IDs are attempted to be returned, but large sets of IDs will likely fail with timeout errors.
 IDs SocialGraphMethods.getFriendsIDs(int userId, long cursor)
          Returns an array of numeric IDs for every user the specified user is following.
 IDs SocialGraphMethods.getFriendsIDs(long cursor)
          Returns an array of numeric IDs for every user the authenticating user is following.
 IDs SocialGraphMethods.getFriendsIDs(java.lang.String screenName)
          Returns an array of numeric IDs for every user the specified user is following.
 IDs SocialGraphMethods.getFriendsIDs(java.lang.String screenName, long cursor)
          Returns an array of numeric IDs for every user the specified user is following.
 PagableResponseList<User> UserMethods.getFriendsStatuses()
          Returns the specified user's friends, each with current status inline.
 PagableResponseList<User> UserMethods.getFriendsStatuses(int userId)
          Returns the specified user's friends, each with current status inline.
 PagableResponseList<User> UserMethods.getFriendsStatuses(int userId, long cursor)
          Returns the specified user's friends, each with current status inline.
 PagableResponseList<User> UserMethods.getFriendsStatuses(long cursor)
          Returns the user's friends, each with current status inline.

This method calls http://api.twitter.com/1/statuses/friends
 PagableResponseList<User> UserMethods.getFriendsStatuses(java.lang.String screenName)
          Returns the specified user's friends, each with current status inline.
 PagableResponseList<User> UserMethods.getFriendsStatuses(java.lang.String screenName, long cursor)
          Returns the specified user's friends, each with current status inline.
 ResponseList<Status> TimelineMethods.getFriendsTimeline()
          Returns the 20 most recent statuses posted in the last 24 hours from the authenticating1 user and that user's friends.
 ResponseList<Status> TimelineMethods.getFriendsTimeline(Paging paging)
          Returns the 20 most recent statuses posted in the last 24 hours from the specified userid.
 Place GeoMethods.getGeoDetails(java.lang.String id)
          Find out more details of a place that was returned from the geo/reverse_geocode method.
 ResponseList<Status> TimelineMethods.getHomeTimeline()
          Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends.
 ResponseList<Status> TimelineMethods.getHomeTimeline(Paging paging)
          Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends.
 Trends LocalTrendsMethods.getLocationTrends(int woeid)
          Returns the top 10 trending topics for a specific location Twitter has trending topic information for.
 ResponseList<Status> TimelineMethods.getMentions()
          Returns the 20 most recent mentions (status containing @username) for the authenticating user.
 ResponseList<Status> TimelineMethods.getMentions(Paging paging)
          Returns the 20 most recent mentions (status containing @username) for the authenticating user.
 ResponseList<Place> GeoMethods.getNearbyPlaces(GeoQuery query)
          Search for places (cities and neighborhoods) that can be attached to a statuses/update.
 ResponseList<Status> TimelineMethods.getPublicTimeline()
          Returns the 20 most recent statuses from non-protected users who have set a custom user icon.
 RateLimitStatus AccountMethods.getRateLimitStatus()
          Returns the remaining number of API requests available to the requesting user before the API limit is reached for the current hour.
 ResponseList<Status> TimelineMethods.getRetweetedByMe()
          Returns the 20 most recent retweets posted by the authenticating user.
 ResponseList<Status> TimelineMethods.getRetweetedByMe(Paging paging)
          Returns the 20 most recent retweets posted by the authenticating user.
 ResponseList<Status> TimelineMethods.getRetweetedToMe()
          Returns the 20 most recent retweets posted by the authenticating user's friends.
 ResponseList<Status> TimelineMethods.getRetweetedToMe(Paging paging)
          Returns the 20 most recent retweets posted by the authenticating user's friends.
 ResponseList<Status> StatusMethods.getRetweets(long statusId)
          Returns up to 100 of the first retweets of a given tweet.
 ResponseList<Status> TimelineMethods.getRetweetsOfMe()
          Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
 ResponseList<Status> TimelineMethods.getRetweetsOfMe(Paging paging)
          Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
 java.util.List<SavedSearch> SavedSearchesMethods.getSavedSearches()
          Returns the authenticated user's saved search queries.
 ResponseList<DirectMessage> DirectMessageMethods.getSentDirectMessages()
          Returns a list of the direct messages sent by the authenticating user.
 ResponseList<DirectMessage> DirectMessageMethods.getSentDirectMessages(Paging paging)
          Returns a list of the direct messages sent by the authenticating user.
 ResponseList<Category> UserMethods.getSuggestedUserCategories()
          Access to Twitter's suggested user list.
 Trends SearchMethods.getTrends()
          Returns the top ten topics that are currently trending on Twitter.
 PagableResponseList<User> ListMembersMethods.getUserListMembers(java.lang.String listOwnerScreenName, int listId, long cursor)
          Returns the members of the specified list.
 PagableResponseList<UserList> ListMethods.getUserListMemberships(java.lang.String listOwnerScreenName, long cursor)
          List the lists the specified user has been added to.
 PagableResponseList<UserList> ListMethods.getUserLists(java.lang.String listOwnerScreenName, long cursor)
          List the lists of the specified user.
 ResponseList<Status> ListMethods.getUserListStatuses(java.lang.String listOwnerScreenName, int id, Paging paging)
          Show tweet timeline for members of the specified list.
 PagableResponseList<User> ListSubscribersMethods.getUserListSubscribers(java.lang.String listOwnerScreenName, int listId, long cursor)
          Returns the subscribers of the specified list.
 PagableResponseList<UserList> ListMethods.getUserListSubscriptions(java.lang.String listOwnerScreenName, long cursor)
          List the lists the specified user follows.
 ResponseList<User> UserMethods.getUserSuggestions(java.lang.String categorySlug)
          Access the users in a given category of the Twitter suggested user list.
 ResponseList<Status> TimelineMethods.getUserTimeline()
          Returns the most recent statuses posted in the last 24 hours from the authenticating user.
 ResponseList<Status> TimelineMethods.getUserTimeline(int userId)
          Returns the most recent statuses posted in the last 24 hours from the specified userid.
 ResponseList<Status> TimelineMethods.getUserTimeline(int userId, Paging paging)
          Returns the most recent statuses posted in the last 24 hours from the specified screen name.
 ResponseList<Status> TimelineMethods.getUserTimeline(Paging paging)
          Returns the most recent statuses posted in the last 24 hours from the authenticating user.
 ResponseList<Status> TimelineMethods.getUserTimeline(java.lang.String screenName)
          Returns the most recent statuses posted in the last 24 hours from the specified userid.
 ResponseList<Status> TimelineMethods.getUserTimeline(java.lang.String screenName, Paging paging)
          Returns the most recent statuses posted in the last 24 hours from the specified screen name.
 java.util.List<Trends> SearchMethods.getWeeklyTrends()
          Returns the top 30 trending topics for each day in a given week.
 java.util.List<Trends> SearchMethods.getWeeklyTrends(java.util.Date date, boolean excludeHashTags)
          Returns the top 30 trending topics for each day in a given week.
 ResponseList<User> UserMethods.lookupUsers(int[] ids)
          Return up to 20 users worth of extended information, specified by either ID.
 ResponseList<User> UserMethods.lookupUsers(java.lang.String[] screenNames)
          Return up to 20 users worth of extended information, specified by screen name.
 void SpamReportingMethodsAsync.reportSpam(int userId)
          The user specified in the id is blocked by the authenticated user and reported as a spammer.
 User SpamReportingMethods.reportSpam(int userId)
          The user specified in the id is blocked by the authenticated user and reported as a spammer.
 void SpamReportingMethodsAsync.reportSpam(java.lang.String screenName)
          The user specified in the id is blocked by the authenticated user and reported as a spammer.
 User SpamReportingMethods.reportSpam(java.lang.String screenName)
          The user specified in the id is blocked by the authenticated user and reported as a spammer.
 Status StatusMethods.retweetStatus(long statusId)
          Retweets a tweet.
 ResponseList<Place> GeoMethods.reverseGeoCode(GeoQuery query)
          Search for places (cities and neighborhoods) that can be attached to a statuses/update.
 QueryResult SearchMethods.search(Query query)
          Returns tweets that match a specified query.
 ResponseList<User> UserMethods.searchUsers(java.lang.String query, int page)
          Run a search for users similar to Find People button on Twitter.com; the same results returned by people search on Twitter.com will be returned by using this API (about being listed in the People Search).
 DirectMessage DirectMessageMethods.sendDirectMessage(int userId, java.lang.String text)
          Sends a new direct message to the specified user from the authenticating user.
 DirectMessage DirectMessageMethods.sendDirectMessage(java.lang.String screenName, java.lang.String text)
          Sends a new direct message to the specified user from the authenticating user.
 Relationship FriendshipMethods.showFriendship(int sourceId, int targetId)
          Gets the detailed relationship status between a source user and a target user
This method calls http://api.twitter.com/1/friendships/show.json
 Relationship FriendshipMethods.showFriendship(java.lang.String sourceScreenName, java.lang.String targetScreenName)
          Gets the detailed relationship status between a source user and a target user
This method calls http://api.twitter.com/1/friendships/show.json
 SavedSearch SavedSearchesMethods.showSavedSearch(int id)
          Retrieve the data for a saved search owned by the authenticating user specified by the given id.
 Status StatusMethods.showStatus(long id)
          Returns a single status, specified by the id parameter.
 User UserMethods.showUser(int userId)
          Returns extended information of a given user, specified by ID.
 User UserMethods.showUser(java.lang.String screenName)
          Returns extended information of a given user, specified by screen name as per the required id parameter below.
 UserList ListMethods.showUserList(java.lang.String listOwnerScreenName, int id)
          Show the specified list.
 UserList ListSubscribersMethods.subscribeUserList(java.lang.String listOwnerScreenName, int listId)
          Make the authenticated user follow the specified list.
 boolean HelpMethods.test()
          Returns the string "ok" in the requested format with a 200 OK HTTP status code.
 UserList ListSubscribersMethods.unsubscribeUserList(java.lang.String listOwnerScreenName, int listId)
          Unsubscribes the authenticated user form the specified list.
 User AccountMethods.updateDeliveryDevice(Device device)
          Sets which device Twitter delivers updates to for the authenticating user.
 User AccountMethods.updateProfile(java.lang.String name, java.lang.String email, java.lang.String url, java.lang.String location, java.lang.String description)
          Sets values that users are able to set under the "Account" tab of their settings page.
 User AccountMethods.updateProfileBackgroundImage(java.io.File image, boolean tile)
          Updates the authenticating user's profile background image.
 User AccountMethods.updateProfileColors(java.lang.String profileBackgroundColor, java.lang.String profileTextColor, java.lang.String profileLinkColor, java.lang.String profileSidebarFillColor, java.lang.String profileSidebarBorderColor)
          Sets one or more hex values that control the color scheme of the authenticating user's profile page on twitter.com.
 User AccountMethods.updateProfileImage(java.io.File image)
          Updates the authenticating user's profile image.
 Status StatusMethods.updateStatus(StatusUpdate latestStatus)
          Updates the user's status.
 Status StatusMethods.updateStatus(java.lang.String status)
          Updates the user's status.
 Status StatusMethods.updateStatus(java.lang.String status, GeoLocation location)
          Deprecated. use updateStatus(StatusUpdate latestStatus) instead.
 Status StatusMethods.updateStatus(java.lang.String status, long inReplyToStatusId)
          Deprecated. use updateStatus(StatusUpdate latestStatus) instead.
 Status StatusMethods.updateStatus(java.lang.String status, long inReplyToStatusId, GeoLocation location)
          Deprecated. use updateStatus(StatusUpdate latestStatus) instead.
 UserList ListMethods.updateUserList(int listId, java.lang.String newListName, boolean isPublicList, java.lang.String newDescription)
          Updates the specified list.
 User AccountMethods.verifyCredentials()
          Returns an HTTP 200 OK response code and a representation of the requesting user if authentication was successful; returns a 401 status code and an error message if not.
 

Uses of TwitterException in twitter4j.http
 

Methods in twitter4j.http that throw TwitterException
 AccessToken RequestToken.getAccessToken()
          Deprecated. Use Twitter.getAccessToken()
 AccessToken RequestToken.getAccessToken(java.lang.String oauth_verifier)
          Deprecated. Use Twitter.getAccessToken()
 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()
          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 OAuthSupport.getOAuthAccessToken(RequestToken requestToken)
          Retrieves an access token associated with the supplied request token and sets userId.
 AccessToken OAuthAuthorization.getOAuthAccessToken(RequestToken requestToken)
          Retrieves an access token associated with the supplied request token and sets userId.
 AccessToken OAuthSupport.getOAuthAccessToken(RequestToken requestToken, java.lang.String oauthVerifier)
          Retrieves an access token associated with the supplied request token and sets userId.
 AccessToken OAuthAuthorization.getOAuthAccessToken(RequestToken requestToken, java.lang.String oauthVerifier)
          Retrieves an access token associated with the supplied request token and sets userId.
 AccessToken OAuthSupport.getOAuthAccessToken(java.lang.String oauthVerifier)
          Retrieves an access token.
 AccessToken OAuthAuthorization.getOAuthAccessToken(java.lang.String oauthVerifier)
          Retrieves an access token.
 AccessToken OAuthAuthorization.getOAuthAccessToken(java.lang.String screenName, java.lang.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.
 RequestToken OAuthSupport.getOAuthRequestToken()
          Retrieves a request token
 RequestToken OAuthAuthorization.getOAuthRequestToken()
          Retrieves a request token
 RequestToken OAuthSupport.getOAuthRequestToken(java.lang.String callbackURL)
          Retrieves a request token
 RequestToken OAuthAuthorization.getOAuthRequestToken(java.lang.String callbackURL)
          Retrieves a request token
 



Copyright © 2010. All Rights Reserved.