public interface TwitterFriendService
| Modifier and Type | Method and Description |
|---|---|
TwitterProfile |
disableNotifications(long userId)
Disable mobile device notifications from Twitter for the specified user.
|
TwitterProfile |
disableNotifications(String screenName)
Disable mobile device notifications from Twitter for the specified user.
|
TwitterProfile |
enableNotifications(long userId)
Enable mobile device notifications from Twitter for the specified user.
|
TwitterProfile |
enableNotifications(String screenName)
Enable mobile device notifications from Twitter for the specified user.
|
String |
follow(long userId)
Allows the authenticated user to follow (create a friendship) with another user.
|
String |
follow(String screenName)
Allows the authenticated user to follow (create a friendship) with another user.
|
boolean |
friendshipExists(String userA,
String userB)
Checks for a friendship between two users.
|
CursoredList<Long> |
getFollowerIds()
Retrieves a list of up to 5000 IDs for the Twitter users that follow the authenticated user.
|
CursoredList<Long> |
getFollowerIds(long userId)
Retrieves a list of up to 5000IDs for the Twitter users that follow the given user.
|
CursoredList<Long> |
getFollowerIds(String screenName)
Retrieves a list of up to 5000 IDs for the Twitter users that follow the given user.
|
CursoredList<Long> |
getFollowerIdsInCursor(long cursor)
Retrieves a list of up to 5000 IDs for the Twitter users that follow the authenticated user.
|
CursoredList<Long> |
getFollowerIdsInCursor(long userId,
long cursor)
Retrieves a list of up to 5000IDs for the Twitter users that follow the given user.
|
CursoredList<Long> |
getFollowerIdsInCursor(String screenName,
long cursor)
Retrieves a list of up to 5000 IDs for the Twitter users that follow the given user.
|
CursoredList<TwitterProfile> |
getFollowers()
Retrieves a list of up to 5000 users that the authenticated user is being followed by Note that this method make multiple
calls to Twitter's REST API (one call to get a list of the follower IDs and one call for every 100 followers).
|
CursoredList<TwitterProfile> |
getFollowers(long userId)
Retrieves a list of up to 5000 users that the given user is being followed by Note that this method make multiple calls
to Twitter's REST API (one call to get a list of the follower IDs and one call for every 100 followers).
|
CursoredList<TwitterProfile> |
getFollowers(String screenName)
Retrieves a list of up to 5000 users that the given user is being followed by Note that this method make multiple calls
to Twitter's REST API (one call to get a list of the follower IDs and one call for every 100 followers).
|
CursoredList<TwitterProfile> |
getFollowersInCursor(long cursor)
Retrieves a list of up to 5000 users that the authenticated user is being followed by Note that this method make multiple
calls to Twitter's REST API (one call to get a list of the follower IDs and one call for every 100 followers).
|
CursoredList<TwitterProfile> |
getFollowersInCursor(long userId,
long cursor)
Retrieves a list of up to 5000 users that the given user is being followed by Note that this method make multiple calls
to Twitter's REST API (one call to get a list of the follower IDs and one call for every 100 followers).
|
CursoredList<TwitterProfile> |
getFollowersInCursor(String screenName,
long cursor)
Retrieves a list of up to 5000 users that the given user is being followed by Note that this method make multiple calls
to Twitter's REST API (one call to get a list of the follower IDs and one call for every 100 followers).
|
CursoredList<Long> |
getFriendIds()
Retrieves a list of up to 5000 IDs for the Twitter users that the authenticated user follows.
|
CursoredList<Long> |
getFriendIds(long userId)
Retrieves a list of up to 5000 IDs for the Twitter users that the given user follows.
|
CursoredList<Long> |
getFriendIds(String screenName)
Retrieves a list of up to 5000 IDs for the Twitter users that the given user follows.
|
CursoredList<Long> |
getFriendIdsInCursor(long cursor)
Retrieves a list of up to 5000 IDs for the Twitter users that the authenticated user follows.
|
CursoredList<Long> |
getFriendIdsInCursor(long userId,
long cursor)
Retrieves a list of up to 5000 IDs for the Twitter users that the given user follows.
|
CursoredList<Long> |
getFriendIdsInCursor(String screenName,
long cursor)
Retrieves a list of up to 5000 IDs for the Twitter users that the given user follows.
|
CursoredList<TwitterProfile> |
getFriends()
Retrieves a list of up to 5000 users that the authenticated user follows.
|
CursoredList<TwitterProfile> |
getFriends(long userId)
Retrieves a list of up to 5000 users that the given user follows.
|
CursoredList<TwitterProfile> |
getFriends(String screenName)
Retrieves a list of up to 5000 users that the given user follows.
|
CursoredList<TwitterProfile> |
getFriendsInCursor(long cursor)
Retrieves a list of up to 5000 users that the authenticated user follows.
|
CursoredList<TwitterProfile> |
getFriendsInCursor(long userId,
long cursor)
Retrieves a list of up to 5000 users that the given user follows.
|
CursoredList<TwitterProfile> |
getFriendsInCursor(String screenName,
long cursor)
Retrieves a list of up to 5000 users that the given user follows.
|
CursoredList<Long> |
getIncomingFriendships()
Returns an array of numeric IDs for every user who has a pending request to follow the authenticating user.
|
CursoredList<Long> |
getIncomingFriendships(long cursor)
Returns an array of numeric IDs for every user who has a pending request to follow the authenticating user.
|
CursoredList<Long> |
getOutgoingFriendships()
Returns an array of numeric IDs for every protected user for whom the authenticating user has a pending follow request.
|
CursoredList<Long> |
getOutgoingFriendships(long cursor)
Returns an array of numeric IDs for every protected user for whom the authenticating user has a pending follow request.
|
String |
unfollow(long userId)
Allows the authenticated use to unfollow (destroy a friendship) with another user
|
String |
unfollow(String screenName)
Allows the authenticated use to unfollow (destroy a friendship) with another user
|
CursoredList<TwitterProfile> getFriends()
ApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.CursoredList<TwitterProfile> getFriendsInCursor(long cursor)
cursor - the cursor used to fetch the friend IDsApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.CursoredList<TwitterProfile> getFriends(long userId)
userId - The user's Twitter IDApiException - if there is an error while communicating with Twitter.CursoredList<TwitterProfile> getFriendsInCursor(long userId, long cursor)
userId - The user's Twitter IDcursor - the cursor used to fetch the friend IDsApiException - if there is an error while communicating with Twitter.CursoredList<TwitterProfile> getFriends(String screenName)
screenName - The user's Twitter screen nameApiException - if there is an error while communicating with Twitter.CursoredList<TwitterProfile> getFriendsInCursor(String screenName, long cursor)
screenName - The user's Twitter screen namecursor - the cursor used to fetch the friend IDsApiException - if there is an error while communicating with Twitter.CursoredList<Long> getFriendIds()
ApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.CursoredList<Long> getFriendIdsInCursor(long cursor)
cursor - The cursor value to fetch a specific page of entries. Use -1 for the first page of entries.ApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.CursoredList<Long> getFriendIds(long userId)
userId - the user's Twitter IDApiException - if there is an error while communicating with Twitter.CursoredList<Long> getFriendIdsInCursor(long userId, long cursor)
userId - the user's Twitter IDcursor - the cursor value to fetch a specific page of entries. Use -1 for the first page of entries.ApiException - if there is an error while communicating with Twitter.CursoredList<Long> getFriendIds(String screenName)
screenName - the user's Twitter screen nameApiException - if there is an error while communicating with Twitter.CursoredList<Long> getFriendIdsInCursor(String screenName, long cursor)
screenName - the user's Twitter screen namecursor - the cursor value to fetch a specific page of entries. Use -1 for the first page of entries.ApiException - if there is an error while communicating with Twitter.CursoredList<TwitterProfile> getFollowers()
ApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.CursoredList<TwitterProfile> getFollowersInCursor(long cursor)
cursor - the cursor used to fetch the follower IDsApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.CursoredList<TwitterProfile> getFollowers(long userId)
userId - The user's Twitter IDApiException - if there is an error while communicating with Twitter.CursoredList<TwitterProfile> getFollowersInCursor(long userId, long cursor)
userId - The user's Twitter IDcursor - the cursor used to fetch the follower IDsApiException - if there is an error while communicating with Twitter.CursoredList<TwitterProfile> getFollowers(String screenName)
screenName - The user's Twitter screen nameApiException - if there is an error while communicating with Twitter.CursoredList<TwitterProfile> getFollowersInCursor(String screenName, long cursor)
screenName - The user's Twitter screen namecursor - the cursor used to fetch the follower IDsApiException - if there is an error while communicating with Twitter.CursoredList<Long> getFollowerIds()
ApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.CursoredList<Long> getFollowerIdsInCursor(long cursor)
cursor - the cursor value to fetch a specific page of entries. Use -1 for the first page of entries.ApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.CursoredList<Long> getFollowerIds(long userId)
userId - the user's Twitter IDApiException - if there is an error while communicating with Twitter.CursoredList<Long> getFollowerIdsInCursor(long userId, long cursor)
userId - the user's Twitter IDcursor - the cursor value to fetch a specific page of entries. Use -1 for the first page of entries.ApiException - if there is an error while communicating with Twitter.CursoredList<Long> getFollowerIds(String screenName)
screenName - the user's Twitter screen nameApiException - if there is an error while communicating with Twitter.CursoredList<Long> getFollowerIdsInCursor(String screenName, long cursor)
screenName - the user's Twitter screen namecursor - the cursor value to fetch a specific page of entries. Use -1 for the first page of entries.ApiException - if there is an error while communicating with Twitter.String follow(long userId)
userId - The Twitter ID of the user to followApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.String follow(String screenName)
screenName - The screen name of the user to followApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.String unfollow(long userId)
userId - the Twitter ID of the user to unfollowApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.String unfollow(String screenName)
screenName - the screen name of the user to unfollowApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.TwitterProfile enableNotifications(long userId)
userId - the Twitter ID of the user to receive notifications for.ApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.TwitterProfile enableNotifications(String screenName)
screenName - the Twitter screen name of the user to receive notifications for.ApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.TwitterProfile disableNotifications(long userId)
userId - the Twitter ID of the user to stop notifications for.ApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.TwitterProfile disableNotifications(String screenName)
screenName - the Twitter screen name of the user to stop notifications for.ApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.boolean friendshipExists(String userA, String userB)
userA - the screen name of userAuserB - the screen name of userBApiException - if there is an error while communicating with Twitter.CursoredList<Long> getIncomingFriendships()
ApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.CursoredList<Long> getIncomingFriendships(long cursor)
cursor - the cursor of the page to retrieve.ApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.CursoredList<Long> getOutgoingFriendships()
ApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.CursoredList<Long> getOutgoingFriendships(long cursor)
cursor - the cursor of the page to retrieve.ApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.Copyright © 2013. All Rights Reserved.