|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FriendshipMethods
Method Summary | |
---|---|
User |
createFriendship(int userId)
Befriends the user specified in the ID parameter as the authenticating user. |
User |
createFriendship(int userId,
boolean follow)
Befriends the user specified in the ID parameter as the authenticating user. |
User |
createFriendship(java.lang.String screenName)
Befriends the user specified in the ID parameter as the authenticating user. |
User |
createFriendship(java.lang.String screenName,
boolean follow)
Befriends the user specified in the ID parameter as the authenticating user. |
User |
destroyFriendship(int userId)
Discontinues friendship with the user specified in the ID parameter as the authenticating user. |
User |
destroyFriendship(java.lang.String screenName)
Discontinues friendship with the user specified in the ID parameter as the authenticating user. |
boolean |
existsFriendship(java.lang.String userA,
java.lang.String userB)
Tests if a friendship exists between two users. |
Relationship |
showFriendship(int sourceId,
int targetId)
Gets the detailed relationship status between a source user and a target user This method calls http://api.twitter.com/1/friendships/show.json |
Relationship |
showFriendship(java.lang.String sourceScreenName,
java.lang.String targetScreenName)
Gets the detailed relationship status between a source user and a target user This method calls http://api.twitter.com/1/friendships/show.json |
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(int 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(int 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(int 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(int sourceId, int targetId) throws TwitterException
sourceId
- the screen ID of the source usertargetId
- the screen ID of the target user
TwitterException
- when Twitter service or network is unavailable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |