|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FriendshipMethodsAsync
Method Summary | |
---|---|
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(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(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(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 |
lookupFriendships(long[] ids)
Returns the relationship of the authenticating user to the specified users. |
void |
lookupFriendships(java.lang.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(java.lang.String sourceScreenName,
java.lang.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(java.lang.String screenName,
boolean enableDeviceNotification,
boolean retweets)
Allows you to enable or disable retweets and device notifications from the specified user. |
Method Detail |
---|
void createFriendship(java.lang.String screenName)
screenName
- the screen name of the user to be befriendedvoid createFriendship(long 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(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 destroyFriendship(java.lang.String screenName)
screenName
- the screen name of the user to be befriendedvoid destroyFriendship(long 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(long sourceId, long targetId)
sourceId
- the ID of the source usertargetId
- the 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.void lookupFriendships(java.lang.String[] screenNames)
screenNames
- array of the screen names to lookupvoid lookupFriendships(long[] ids)
ids
- array of the ids to lookupvoid updateFriendship(java.lang.String screenName, boolean enableDeviceNotification, boolean retweets)
screenName
- screen name to updateenableDeviceNotification
- set true to enable device notificationretweets
- set true to enable retweetsvoid updateFriendship(long userId, boolean enableDeviceNotification, boolean retweets)
userId
- user id to updateenableDeviceNotification
- set true to enable device notificationretweets
- set true to enable retweets
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |