|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FriendshipMethods
| Method Summary | |
|---|---|
User |
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. |
User |
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. |
User |
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. |
User |
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. |
User |
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. |
User |
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. |
boolean |
existsFriendship(String userA,
String userB)
Tests for the existence of friendship between two users. |
IDs |
getIncomingFriendships(long cursor)
Returns an array of numeric IDs for every user who has a pending request to follow the authenticating user. |
IDs |
getNoRetweetIds()
Returns the list of user_ids for which the authenticating user has said they do not want to receive retweets from when successful. |
IDs |
getOutgoingFriendships(long cursor)
Returns an array of numeric IDs for every protected user for whom the authenticating user has a pending follow request. |
ResponseList<Friendship> |
lookupFriendships(long[] ids)
Returns the relationship of the authenticating user to the specified users. |
ResponseList<Friendship> |
lookupFriendships(String[] screenNames)
Returns the relationship of the authenticating user to the specified users. |
Relationship |
showFriendship(long sourceId,
long targetId)
Returns detailed information about the relationship between two users. |
Relationship |
showFriendship(String sourceScreenName,
String targetScreenName)
Returns detailed information about the relationship between two users. |
Relationship |
updateFriendship(long userId,
boolean enableDeviceNotification,
boolean retweets)
Allows you to enable or disable retweets and device notifications from the specified user. |
Relationship |
updateFriendship(String screenName,
boolean enableDeviceNotification,
boolean retweets)
Allows you to enable or disable retweets and device notifications from the specified user. |
| Method Detail |
|---|
User createFriendship(String screenName)
throws TwitterException
screenName - the screen name of the user to be befriended
TwitterException - when Twitter service or network is unavailable
User createFriendship(long userId)
throws TwitterException
userId - the ID of the user to be befriended
TwitterException - when Twitter service or network is unavailable
User createFriendship(String screenName,
boolean follow)
throws TwitterException
screenName - the screen name of the user to be befriendedfollow - Enable notifications for the target user in addition to becoming friends.
TwitterException - when Twitter service or network is unavailable
User createFriendship(long userId,
boolean follow)
throws TwitterException
userId - the ID of the user to be befriendedfollow - Enable notifications for the target user in addition to becoming friends.
TwitterException - when Twitter service or network is unavailable
User destroyFriendship(String screenName)
throws TwitterException
screenName - the screen name of the user for whom to request a list of friends
TwitterException - when Twitter service or network is unavailable
User destroyFriendship(long userId)
throws TwitterException
userId - the ID of the user for whom to request a list of friends
TwitterException - when Twitter service or network is unavailable
boolean existsFriendship(String userA,
String userB)
throws TwitterException
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.
TwitterException - when Twitter service or network is unavailable
Relationship showFriendship(String sourceScreenName,
String targetScreenName)
throws TwitterException
sourceScreenName - the screen name of the source usertargetScreenName - the screen name of the target user
TwitterException - when Twitter service or network is unavailable
Relationship showFriendship(long sourceId,
long targetId)
throws TwitterException
sourceId - the ID of the source usertargetId - the ID of the target user
TwitterException - when Twitter service or network is unavailable
IDs getIncomingFriendships(long cursor)
throws TwitterException
cursor - Breaks the results into pages. A single page contains 5000 identifiers. Provide a value of -1 to begin paging.
TwitterException - when Twitter service or network is unavailable
IDs getOutgoingFriendships(long cursor)
throws TwitterException
cursor - Breaks the results into pages. A single page contains 5000 identifiers. Provide a value of -1 to begin paging.
TwitterException - when Twitter service or network is unavailable
ResponseList<Friendship> lookupFriendships(String[] screenNames)
throws TwitterException
screenNames - array of the screen names to lookup
TwitterException - when Twitter service or network is unavailable
ResponseList<Friendship> lookupFriendships(long[] ids)
throws TwitterException
ids - array of the ids to lookup
TwitterException - when Twitter service or network is unavailable
Relationship updateFriendship(String screenName,
boolean enableDeviceNotification,
boolean retweets)
throws TwitterException
screenName - screen name to updateenableDeviceNotification - set true to enable device notificationretweets - set true to enable retweets
TwitterException - when Twitter service or network is unavailable
Relationship updateFriendship(long userId,
boolean enableDeviceNotification,
boolean retweets)
throws TwitterException
userId - user id to updateenableDeviceNotification - set true to enable device notificationretweets - set true to enable retweets
TwitterException - when Twitter service or network is unavailable
IDs getNoRetweetIds()
throws TwitterException
TwitterException - when Twitter service or network is unavailable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||