public interface FriendshipMethodsAsync
Modifier and Type | Method and Description |
---|---|
void |
createFriendship(int 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(int 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(java.lang.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(java.lang.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(int 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(java.lang.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 |
existsFriendship(java.lang.String userA,
java.lang.String userB)
Tests for the existence of friendship between two users.
|
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 |
showFriendship(int sourceId,
int targetId)
Returns detailed information about the relationship between two users.
|
void |
showFriendship(java.lang.String sourceScreenName,
java.lang.String targetScreenName)
Returns detailed information about the relationship between two users.
|
void createFriendship(java.lang.String screenName)
screenName
- the screen name of the user to be befriendedvoid createFriendship(int userId)
userId
- the ID of the user to be befriendedvoid createFriendship(java.lang.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 createFriendship(int userId, boolean follow)
userId
- the ID of the user to be befriendedfollow
- Enable notifications for the target user in addition to becoming friends.void destroyFriendship(java.lang.String screenName)
screenName
- the screen name of the user to be befriendedvoid destroyFriendship(int userId)
userId
- the screen name of the user to be befriendedvoid existsFriendship(java.lang.String userA, java.lang.String userB)
userA
- The ID or screen_name of the first user to test friendship for.userB
- The ID or screen_name of the second user to test friendship for.void showFriendship(java.lang.String sourceScreenName, java.lang.String targetScreenName)
sourceScreenName
- the screen name of the source usertargetScreenName
- the screen name of the target uservoid showFriendship(int sourceId, int targetId)
sourceId
- the screen ID of the source usertargetId
- the screen ID of the target uservoid 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.