|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FriendshipMethodsAsync
| Method Summary | |
|---|---|
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 |
lookupFriendships(int[] 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(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 |
updateFriendship(int 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(int userId)
userId - the ID of the user to be befriended
void 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 befriended
void 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 user
void 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.void lookupFriendships(java.lang.String[] screenNames)
screenNames - array of the screen names to lookupvoid lookupFriendships(int[] ids)
ids - array of the ids to lookup
void updateFriendship(java.lang.String screenName,
boolean enableDeviceNotification,
boolean retweets)
screenName - screen name to updateenableDeviceNotification - set true to enable device notificationretweets - set true to enable retweets
void updateFriendship(int 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 | |||||||||