|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserMethods
Method Summary | |
---|---|
PagableResponseList<User> |
getFollowersStatuses()
Returns the authenticating user's followers, each with current status inline. |
PagableResponseList<User> |
getFollowersStatuses(int userId)
Returns the specified user's followers, each with current status inline. |
PagableResponseList<User> |
getFollowersStatuses(int userId,
long cursor)
Returns the specified user's followers, each with current status inline. |
PagableResponseList<User> |
getFollowersStatuses(long cursor)
Returns the authenticating user's followers, each with current status inline. |
PagableResponseList<User> |
getFollowersStatuses(java.lang.String screenName)
Returns the specified user's followers, each with current status inline. |
PagableResponseList<User> |
getFollowersStatuses(java.lang.String screenName,
long cursor)
Returns the specified user's followers, each with current status inline. |
PagableResponseList<User> |
getFriendsStatuses()
Returns the specified user's friends, each with current status inline. |
PagableResponseList<User> |
getFriendsStatuses(int userId)
Returns the specified user's friends, each with current status inline. |
PagableResponseList<User> |
getFriendsStatuses(int userId,
long cursor)
Returns the specified user's friends, each with current status inline. |
PagableResponseList<User> |
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> |
getFriendsStatuses(java.lang.String screenName)
Returns the specified user's friends, each with current status inline. |
PagableResponseList<User> |
getFriendsStatuses(java.lang.String screenName,
long cursor)
Returns the specified user's friends, each with current status inline. |
ResponseList<Category> |
getSuggestedUserCategories()
Access to Twitter's suggested user list. |
ResponseList<User> |
getUserSuggestions(java.lang.String categorySlug)
Access the users in a given category of the Twitter suggested user list. |
ResponseList<User> |
lookupUsers(int[] ids)
Return up to 20 users worth of extended information, specified by either ID. |
ResponseList<User> |
lookupUsers(java.lang.String[] screenNames)
Return up to 20 users worth of extended information, specified by screen name. |
ResponseList<User> |
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). |
User |
showUser(int userId)
Returns extended information of a given user, specified by ID. |
User |
showUser(java.lang.String screenName)
Returns extended information of a given user, specified by screen name as per the required id parameter below. |
Method Detail |
---|
User showUser(java.lang.String screenName) throws TwitterException
screenName
- the screen name of the user for whom to request the detail
TwitterException
- when Twitter service or network is unavailableUser showUser(int userId) throws TwitterException
userId
- the ID of the user for whom to request the detail
TwitterException
- when Twitter service or network is unavailableResponseList<User> lookupUsers(java.lang.String[] screenNames) throws TwitterException
screenNames
- Specifies the screen names of the users to return.
TwitterException
- when Twitter service or network is unavailableResponseList<User> lookupUsers(int[] ids) throws TwitterException
ids
- Specifies the screen names of the users to return.
TwitterException
- when Twitter service or network is unavailableResponseList<User> searchUsers(java.lang.String query, int page) throws TwitterException
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.
TwitterException
- when Twitter service or network is unavailableResponseList<Category> getSuggestedUserCategories() throws TwitterException
TwitterException
- when Twitter service or network is unavailableResponseList<User> getUserSuggestions(java.lang.String categorySlug) throws TwitterException
categorySlug
- slug
TwitterException
- when Twitter service or network is unavailablePagableResponseList<User> getFriendsStatuses() throws TwitterException
TwitterException
- when Twitter service or network is unavailablePagableResponseList<User> getFriendsStatuses(long cursor) throws TwitterException
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.
TwitterException
- when Twitter service or network is unavailablePagableResponseList<User> getFriendsStatuses(java.lang.String screenName) throws TwitterException
screenName
- the screen name of the user for whom to request a list of friends
TwitterException
- when Twitter service or network is unavailablePagableResponseList<User> getFriendsStatuses(int userId) throws TwitterException
userId
- the ID of the user for whom to request a list of friends
TwitterException
- when Twitter service or network is unavailablePagableResponseList<User> getFriendsStatuses(java.lang.String screenName, long cursor) throws TwitterException
screenName
- the screen name of the user for whom to request a list of friendscursor
- 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.
TwitterException
- when Twitter service or network is unavailablePagableResponseList<User> getFriendsStatuses(int userId, long cursor) throws TwitterException
userId
- the ID of the user for whom to request a list of friendscursor
- 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.
TwitterException
- when Twitter service or network is unavailablePagableResponseList<User> getFollowersStatuses() throws TwitterException
TwitterException
- when Twitter service or network is unavailablePagableResponseList<User> getFollowersStatuses(long cursor) throws TwitterException
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.
TwitterException
- when Twitter service or network is unavailablePagableResponseList<User> getFollowersStatuses(java.lang.String screenName) throws TwitterException
screenName
- The screen name of the user for whom to request a list of followers.
TwitterException
- when Twitter service or network is unavailablePagableResponseList<User> getFollowersStatuses(int userId) throws TwitterException
userId
- The ID of the user for whom to request a list of followers.
TwitterException
- when Twitter service or network is unavailablePagableResponseList<User> getFollowersStatuses(java.lang.String screenName, long cursor) throws TwitterException
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.
TwitterException
- when Twitter service or network is unavailablePagableResponseList<User> getFollowersStatuses(int userId, long cursor) throws TwitterException
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.
TwitterException
- when Twitter service or network is unavailable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |