twitter4j.api
Interface UserMethodsAsync

All Known Implementing Classes:
AsyncTwitter

public interface UserMethodsAsync

Author:
Joern Huxhorn - jhuxhorn at googlemail.com

Method Summary
 void getFollowersStatuses()
          Returns the authenticating user's followers, each with current status inline.
 void getFollowersStatuses(int userId)
          Returns the specified user's followers, each with current status inline.
 void getFollowersStatuses(int userId, long cursor)
          Returns the specified user's followers, each with current status inline.
 void getFollowersStatuses(long cursor)
          Returns the authenticating user's followers, each with current status inline.
 void getFollowersStatuses(java.lang.String screenName)
          Returns the specified user's followers, each with current status inline.
 void getFollowersStatuses(java.lang.String screenName, long cursor)
          Returns the specified user's followers, each with current status inline.
 void getFriendsStatuses()
          Returns the specified user's friends, each with current status inline.
 void getFriendsStatuses(int userId)
          Returns the specified user's friends, each with current status inline.
 void getFriendsStatuses(int userId, long cursor)
          Returns the specified user's friends, each with current status inline.
 void getFriendsStatuses(long cursor)
          Returns the specified user's friends, each with current status inline.
 void getFriendsStatuses(java.lang.String screenName)
          Returns the specified user's friends, each with current status inline.
 void getFriendsStatuses(java.lang.String screenName, long cursor)
          Returns the specified user's friends, each with current status inline.
 void 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).
 void showUser(int userId)
          Retrieves extended information of a given user, specified by screen name.
 void showUser(java.lang.String screenName)
          Retrieves extended information of a given user, specified by screen name.
 

Method Detail

showUser

void showUser(java.lang.String screenName)
Retrieves extended information of a given user, specified by screen name. This information includes design settings, so third party developers can theme their widgets according to a given user's preferences.
This method calls http://api.twitter.com/1/users/show

Parameters:
screenName - the screen name of the user for whom to request the detail
See Also:
Twitter API Wiki / Twitter REST API Method: users%C2%A0show

showUser

void showUser(int userId)
Retrieves extended information of a given user, specified by screen name. This information includes design settings, so third party developers can theme their widgets according to a given user's preferences.
This method calls http://api.twitter.com/1/users/show

Parameters:
userId - the ID of the user for whom to request the detail
See Also:
Twitter API Wiki / Twitter REST API Method: users%C2%A0show

searchUsers

void searchUsers(java.lang.String query,
                 int page)
                 throws TwitterException
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). It is only possible to retrieve the first 1000 matches from this API.
This method calls http://api.twitter.com/1/users/search.json

Parameters:
query - The query to run against people search.
page - Specifies the page of results to retrieve. Number of statuses per page is fixed to 20.
Throws:
TwitterException - when Twitter service or network is unavailable
See Also:
Twitter API Wiki / Twitter REST API Method: users search

getFriendsStatuses

void getFriendsStatuses()
Returns the specified user's friends, each with current status inline.
This method calls http://api.twitter.com/1/statuses/friends

Since:
Twitter4J 2.0.9
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0friends

getFriendsStatuses

void getFriendsStatuses(long cursor)
Returns the specified user's friends, each with current status inline.
This method calls http://api.twitter.com/1/statuses/friends

Parameters:
cursor - Breaks the results into pages. A single page contains 100 users. This is recommended for users who are followed by many other users. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
Since:
Twitter4J 2.0.9
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0friends

getFriendsStatuses

void getFriendsStatuses(java.lang.String screenName)
Returns the specified user's friends, each with current status inline.
This method calls http://api.twitter.com/1/statuses/friends

Parameters:
screenName - the screen name of the user for whom to request a list of friends
Since:
Twitter4J 2.0.9
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0friends

getFriendsStatuses

void getFriendsStatuses(int userId)
Returns the specified user's friends, each with current status inline.
This method calls http://api.twitter.com/1/statuses/friends

Parameters:
userId - the ID of the user for whom to request a list of friends
Since:
Twitter4J 2.1.0
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0friends

getFriendsStatuses

void getFriendsStatuses(java.lang.String screenName,
                        long cursor)
Returns the specified user's friends, each with current status inline.
This method calls http://api.twitter.com/1/statuses/friends

Parameters:
screenName - the screen name of the user for whom to request a list of friends
cursor - Breaks the results into pages. A single page contains 100 users. This is recommended for users who are followed by many other users. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
Since:
Twitter4J 2.0.9
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0friends

getFriendsStatuses

void getFriendsStatuses(int userId,
                        long cursor)
Returns the specified user's friends, each with current status inline.
This method calls http://api.twitter.com/1/statuses/friends

Parameters:
userId - the screen name of the user for whom to request a list of friends
cursor - Breaks the results into pages. A single page contains 100 users. This is recommended for users who are followed by many other users. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
Since:
Twitter4J 2.1.0
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0friends

getFollowersStatuses

void getFollowersStatuses()
Returns the authenticating user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
This method calls http://api.twitter.com/1/statuses/followers

Since:
Twitter4J 2.0.9
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0followers

getFollowersStatuses

void getFollowersStatuses(long cursor)
Returns the authenticating user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
This method calls http://api.twitter.com/1/statuses/followers

Parameters:
cursor - Breaks the results into pages. A single page contains 100 users. This is recommended for users who are followed by many other users. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
Since:
Twitter4J 2.0.9
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0followers

getFollowersStatuses

void getFollowersStatuses(java.lang.String screenName)
Returns the specified user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
This method calls http://api.twitter.com/1/statuses/followers

Parameters:
screenName - The screen name of the user for whom to request a list of followers.
Since:
Twitter4J 2.0.9
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0followers

getFollowersStatuses

void getFollowersStatuses(int userId)
Returns the specified user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
This method calls http://api.twitter.com/1/statuses/followers

Parameters:
userId - The ID of the user for whom to request a list of followers.
Since:
Twitter4J 2.1.0
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0followers

getFollowersStatuses

void getFollowersStatuses(java.lang.String screenName,
                          long cursor)
Returns the specified user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
This method calls http://api.twitter.com/1/statuses/followers

Parameters:
screenName - The screen name of the user for whom to request a list of followers.
cursor - Breaks the results into pages. A single page contains 100 users. This is recommended for users who are followed by many other users. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
Since:
Twitter4J 2.0.9
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0followers

getFollowersStatuses

void getFollowersStatuses(int userId,
                          long cursor)
Returns the specified user's followers, each with current status inline. They are ordered by the order in which they joined Twitter (this is going to be changed).
This method calls http://api.twitter.com/1/statuses/followers

Parameters:
userId - The ID of the user for whom to request a list of followers.
cursor - Breaks the results into pages. A single page contains 100 users. This is recommended for users who are followed by many other users. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list.
Since:
Twitter4J 2.1.0
See Also:
Twitter API Wiki / Twitter REST API Method: statuses%C2%A0followers