twitter4j.api
Interface FriendsFollowersMethods

All Known Implementing Classes:
Twitter

public interface FriendsFollowersMethods

Author:
Joern Huxhorn - jhuxhorn at googlemail.com

Method Summary
 IDs getFollowersIDs()
          Returns an array of numeric IDs for every user the specified user is followed by.
 IDs getFollowersIDs(int userId)
          Returns an array of numeric IDs for every user the specified user is followed by.
 IDs getFollowersIDs(int userId, long cursor)
          Returns an array of numeric IDs for every user the specified user is followed by.
 IDs getFollowersIDs(long cursor)
          Returns an array of numeric IDs for every user the specified user is followed by.
 IDs getFollowersIDs(java.lang.String screenName)
          Returns an array of numeric IDs for every user the specified user is followed by.
 IDs getFollowersIDs(java.lang.String screenName, long cursor)
          Returns an array of numeric IDs for every user the specified user is followed by.
 IDs getFriendsIDs()
          Returns an array of numeric IDs for every user the authenticating user is following.
 IDs 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 getFriendsIDs(int userId, long cursor)
          Returns an array of numeric IDs for every user the specified user is following.
 IDs getFriendsIDs(long cursor)
          Returns an array of numeric IDs for every user the authenticating user is following.
 IDs getFriendsIDs(java.lang.String screenName)
          Returns an array of numeric IDs for every user the specified user is following.
 IDs getFriendsIDs(java.lang.String screenName, long cursor)
          Returns an array of numeric IDs for every user the specified user is following.
 

Method Detail

getFriendsIDs

IDs getFriendsIDs()
                  throws TwitterException
Returns an array of numeric IDs for every user the authenticating user is following.
This method calls http://api.twitter.com/1/friends/ids.json

Returns:
an array of numeric IDs for every user the authenticating user is following
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.0.0
See Also:
GET friends/ids | dev.twitter.com

getFriendsIDs

IDs getFriendsIDs(long cursor)
                  throws TwitterException
Returns an array of numeric IDs for every user the authenticating user is following.
This method calls http://api.twitter.com/1/friends/ids.json

Parameters:
cursor - Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
Returns:
an array of numeric IDs for every user the authenticating user is following
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.0.10
See Also:
GET friends/ids | dev.twitter.com

getFriendsIDs

IDs getFriendsIDs(int userId)
                  throws TwitterException
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.
This method calls http://api.twitter.com/1/friends/ids.json

Parameters:
userId - Specifies the ID of the user for whom to return the friends list.
Returns:
an array of numeric IDs for every user the specified user is following
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.0.0
See Also:
GET friends/ids | dev.twitter.com

getFriendsIDs

IDs getFriendsIDs(int userId,
                  long cursor)
                  throws TwitterException
Returns an array of numeric IDs for every user the specified user is following.
This method calls http://api.twitter.com/1/friends/ids.json

Parameters:
userId - Specifies the ID of the user for whom to return the friends list.
cursor - Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
Returns:
an array of numeric IDs for every user the specified user is following
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.0.10
See Also:
GET friends/ids | dev.twitter.com

getFriendsIDs

IDs getFriendsIDs(java.lang.String screenName)
                  throws TwitterException
Returns an array of numeric IDs for every user the specified user is following.
This method calls http://api.twitter.com/1/friends/ids.json

Parameters:
screenName - Specifies the screen name of the user for whom to return the friends list.
Returns:
an array of numeric IDs for every user the specified user is following
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.0.0
See Also:
GET friends/ids | dev.twitter.com

getFriendsIDs

IDs getFriendsIDs(java.lang.String screenName,
                  long cursor)
                  throws TwitterException
Returns an array of numeric IDs for every user the specified user is following.
This method calls http://api.twitter.com/1/friends/ids.json

Parameters:
screenName - Specifies the screen name of the user for whom to return the friends list.
cursor - Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
Returns:
an array of numeric IDs for every user the specified user is following
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.0.10
See Also:
GET friends/ids | dev.twitter.com

getFollowersIDs

IDs getFollowersIDs()
                    throws TwitterException
Returns an array of numeric IDs for every user the specified user is followed by.
This method calls http://api.twitter.com/1/followers/ids.json

Returns:
The ID or screen_name of the user to retrieve the friends ID list for.
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.0.0
See Also:
GET followers/ids | dev.twitter.com

getFollowersIDs

IDs getFollowersIDs(long cursor)
                    throws TwitterException
Returns an array of numeric IDs for every user the specified user is followed by.
This method calls http://api.twitter.com/1/followers/ids.json

Parameters:
cursor - Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
Returns:
The ID or screen_name of the user to retrieve the friends ID list for.
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.0.10
See Also:
GET followers/ids | dev.twitter.com

getFollowersIDs

IDs getFollowersIDs(int userId)
                    throws TwitterException
Returns an array of numeric IDs for every user the specified user is followed by.
This method calls http://api.twitter.com/1/followers/ids.json

Parameters:
userId - Specifies the ID of the user for whom to return the followers list.
Returns:
The ID or screen_name of the user to retrieve the friends ID list for.
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.0.0
See Also:
GET followers/ids | dev.twitter.com

getFollowersIDs

IDs getFollowersIDs(int userId,
                    long cursor)
                    throws TwitterException
Returns an array of numeric IDs for every user the specified user is followed by.
This method calls http://api.twitter.com/1/followers/ids.json

Parameters:
userId - Specifies the ID of the user for whom to return the followers list.
cursor - Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
Returns:
The ID or screen_name of the user to retrieve the friends ID list for.
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.0.10
See Also:
GET followers/ids | dev.twitter.com

getFollowersIDs

IDs getFollowersIDs(java.lang.String screenName)
                    throws TwitterException
Returns an array of numeric IDs for every user the specified user is followed by.
This method calls http://api.twitter.com/1/followers/ids.json

Parameters:
screenName - Specifies the screen name of the user for whom to return the followers list.
Returns:
The ID or screen_name of the user to retrieve the friends ID list for.
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.0.0
See Also:
GET followers/ids | dev.twitter.com

getFollowersIDs

IDs getFollowersIDs(java.lang.String screenName,
                    long cursor)
                    throws TwitterException
Returns an array of numeric IDs for every user the specified user is followed by.
This method calls http://api.twitter.com/1/followers/ids.json

Parameters:
screenName - Specifies the screen name of the user for whom to return the followers list.
cursor - Specifies the page number of the results beginning at 1. A single page contains 5000 ids. This is recommended for users with large ID lists. If not provided all ids are returned.
Returns:
The ID or screen_name of the user to retrieve the friends ID list for.
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.0.10
See Also:
GET followers/ids | dev.twitter.com