|
|||||||||
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(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. |
User |
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. |
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(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. |
boolean |
existsFriendship(java.lang.String userA,
java.lang.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 |
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(java.lang.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(java.lang.String sourceScreenName,
java.lang.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(java.lang.String screenName,
boolean enableDeviceNotification,
boolean retweets)
Allows you to enable or disable retweets and device notifications from the specified user. |
Method Detail |
---|
User createFriendship(java.lang.String screenName) throws TwitterException
screenName
- the screen name of the user to be befriended
TwitterException
- when Twitter service or network is unavailableUser createFriendship(long userId) throws TwitterException
userId
- the ID of the user to be befriended
TwitterException
- when Twitter service or network is unavailableUser createFriendship(java.lang.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 unavailableUser 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 unavailableUser destroyFriendship(java.lang.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 unavailableUser 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 unavailableboolean existsFriendship(java.lang.String userA, java.lang.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 unavailableRelationship showFriendship(java.lang.String sourceScreenName, java.lang.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 unavailableRelationship 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 unavailableIDs 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 unavailableIDs 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 unavailableResponseList<Friendship> lookupFriendships(java.lang.String[] screenNames) throws TwitterException
screenNames
- array of the screen names to lookup
TwitterException
- when Twitter service or network is unavailableResponseList<Friendship> lookupFriendships(long[] ids) throws TwitterException
ids
- array of the ids to lookup
TwitterException
- when Twitter service or network is unavailableRelationship updateFriendship(java.lang.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 unavailableRelationship 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |