public interface FriendsFollowersResourcesAsync
Modifier and Type | Method and Description |
---|---|
void |
createFriendship(long userId)
Allows the authenticating users to follow the user specified in the ID parameter.
Returns the befriended user in the requested format when successful. |
void |
createFriendship(long userId,
boolean follow)
Allows the authenticating users to follow the user specified in the ID parameter.
Returns the befriended user in the requested format when successful. |
void |
createFriendship(String screenName)
Allows the authenticating users to follow the user specified in the ID parameter.
Returns the befriended user in the requested format when successful. |
void |
createFriendship(String screenName,
boolean follow)
Allows the authenticating users to follow the user specified in the ID parameter.
Returns the befriended user in the requested format when successful. |
void |
destroyFriendship(long userId)
Allows the authenticating users to unfollow the user specified in the ID parameter.
Returns the unfollowed user in the requested format when successful. |
void |
destroyFriendship(String screenName)
Allows the authenticating users to unfollow the user specified in the ID parameter.
Returns the unfollowed user in the requested format when successful. |
void |
getFollowersIDs(long cursor)
Returns an array of numeric IDs for every user the specified user is followed by.
|
void |
getFollowersIDs(long userId,
long cursor)
Returns an array of numeric IDs for every user the specified user is followed by.
|
void |
getFollowersIDs(String screenName,
long cursor)
Returns an array of numeric IDs for every user the specified user is followed by.
|
void |
getFollowersList(long userId,
long cursor)
Returns a cursored collection of user objects for users following the specified user.
At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. |
void |
getFollowersList(String screenName,
long cursor)
Returns a cursored collection of user objects for users following the specified user.
At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. |
void |
getFriendsIDs(long cursor)
Returns an array of numeric IDs for every user the authenticating user is following.
|
void |
getFriendsIDs(long userId,
long cursor)
Returns an array of numeric IDs for every user the specified user is following.
|
void |
getFriendsIDs(String screenName,
long cursor)
Returns an array of numeric IDs for every user the specified user is following.
|
void |
getFriendsList(long userId,
long cursor)
Returns a cursored collection of user objects for every user the specified user is following (otherwise known as their "friends").
At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. |
void |
getFriendsList(String screenName,
long cursor)
Returns a cursored collection of user objects for every user the specified user is following (otherwise known as their "friends").
At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. |
void |
getIncomingFriendships(long cursor)
Returns an array of numeric IDs for every user who has a pending request to follow the authenticating user.
|
void |
getOutgoingFriendships(long cursor)
Returns an array of numeric IDs for every protected user for whom the authenticating user has a pending follow request.
|
void |
lookupFriendships(long... ids)
Returns the relationship of the authenticating user to the specified users.
|
void |
lookupFriendships(String... screenNames)
Returns the relationship of the authenticating user to the specified users.
|
void |
showFriendship(long sourceId,
long targetId)
Returns detailed information about the relationship between two users.
|
void |
showFriendship(String sourceScreenName,
String targetScreenName)
Returns detailed information about the relationship between two users.
|
void |
updateFriendship(long userId,
boolean enableDeviceNotification,
boolean retweets)
Allows you to enable or disable retweets and device notifications from the specified user.
|
void |
updateFriendship(String screenName,
boolean enableDeviceNotification,
boolean retweets)
Allows you to enable or disable retweets and device notifications from the specified user.
|
void getFriendsIDs(long cursor)
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.void getFriendsIDs(long userId, long cursor)
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.void getFriendsIDs(String screenName, long cursor)
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.void getFollowersIDs(long cursor)
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.void getFollowersIDs(long userId, long cursor)
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.void getFollowersIDs(String screenName, long cursor)
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.void lookupFriendships(long... ids)
ids
- array of the ids to lookupvoid lookupFriendships(String... screenNames)
screenNames
- array of the screen names to lookupvoid getIncomingFriendships(long cursor)
cursor
- Breaks the results into pages. A single page contains 5000 identifiers. Provide a value of -1 to begin paging.void getOutgoingFriendships(long cursor)
cursor
- Breaks the results into pages. A single page contains 5000 identifiers. Provide a value of -1 to begin paging.void createFriendship(long userId)
userId
- the ID of the user to be befriendedvoid createFriendship(String screenName)
screenName
- the screen name of the user to be befriendedvoid createFriendship(long userId, boolean follow)
userId
- the ID of the user to be befriendedfollow
- Enable notifications for the target user in addition to becoming friends.void createFriendship(String screenName, boolean follow)
screenName
- the screen name of the user to be befriendedfollow
- Enable notifications for the target user in addition to becoming friends.void destroyFriendship(long userId)
userId
- the screen name of the user to be befriendedvoid destroyFriendship(String screenName)
screenName
- the screen name of the user to be befriendedvoid updateFriendship(long userId, boolean enableDeviceNotification, boolean retweets)
userId
- user id to updateenableDeviceNotification
- set true to enable device notificationretweets
- set true to enable retweetsvoid updateFriendship(String screenName, boolean enableDeviceNotification, boolean retweets)
screenName
- screen name to updateenableDeviceNotification
- set true to enable device notificationretweets
- set true to enable retweetsvoid showFriendship(long sourceId, long targetId)
sourceId
- the ID of the source usertargetId
- the ID of the target uservoid showFriendship(String sourceScreenName, String targetScreenName)
sourceScreenName
- the screen name of the source usertargetScreenName
- the screen name of the target uservoid getFriendsList(long userId, long cursor)
userId
- The ID of the user for whom to return results for.cursor
- Causes the results to be broken into pages of no more than 20 records at a time.void getFriendsList(String screenName, long cursor)
screenName
- The screen name of the user for whom to return results for.cursor
- Causes the results to be broken into pages of no more than 20 records at a time.void getFollowersList(long userId, long cursor)
userId
- The ID of the user for whom to return results for.cursor
- Causes the results to be broken into pages of no more than 20 records at a time.void getFollowersList(String screenName, long cursor)
screenName
- The screen name of the user for whom to return results for.cursor
- Causes the results to be broken into pages of no more than 20 records at a time.Copyright © 2018. All rights reserved.