twitter4j.api
Interface FriendsFollowersMethods

All Known Subinterfaces:
Twitter
All Known Implementing Classes:
TwitterImpl

public interface FriendsFollowersMethods

Author:
Joern Huxhorn - jhuxhorn at googlemail.com

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