|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FriendOperations
Interface defining the operations for working with a user's friends and followers.
Method Summary | |
---|---|
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. |
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 |
Method Detail |
---|
CursoredList<TwitterProfile> getFriends()
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.CursoredList<TwitterProfile> getFriendsInCursor(long cursor)
cursor
- the cursor used to fetch the friend IDs
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.CursoredList<TwitterProfile> getFriends(long userId)
userId
- The user's Twitter ID
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials or an application access token.CursoredList<TwitterProfile> getFriendsInCursor(long userId, long cursor)
userId
- The user's Twitter IDcursor
- the cursor used to fetch the friend IDs
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials or an application access token.CursoredList<TwitterProfile> getFriends(String screenName)
screenName
- The user's Twitter screen name
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials or an application access token.CursoredList<TwitterProfile> getFriendsInCursor(String screenName, long cursor)
screenName
- The user's Twitter screen namecursor
- the cursor used to fetch the friend IDs
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.CursoredList<Long> getFriendIds()
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.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.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.CursoredList<Long> getFriendIds(long userId)
userId
- the user's Twitter ID
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials or an application access token.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.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials or an application access token.CursoredList<Long> getFriendIds(String screenName)
screenName
- the user's Twitter screen name
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials or an application access token.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.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials or an application access token.CursoredList<TwitterProfile> getFollowers()
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.CursoredList<TwitterProfile> getFollowersInCursor(long cursor)
cursor
- the cursor used to fetch the follower IDs
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.CursoredList<TwitterProfile> getFollowers(long userId)
userId
- The user's Twitter ID
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials or an application access token.CursoredList<TwitterProfile> getFollowersInCursor(long userId, long cursor)
userId
- The user's Twitter IDcursor
- the cursor used to fetch the follower IDs
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials or an application access token.CursoredList<TwitterProfile> getFollowers(String screenName)
screenName
- The user's Twitter screen name
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials or an application access token.CursoredList<TwitterProfile> getFollowersInCursor(String screenName, long cursor)
screenName
- The user's Twitter screen namecursor
- the cursor used to fetch the follower IDs
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials or an application access token.CursoredList<Long> getFollowerIds()
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.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.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.CursoredList<Long> getFollowerIds(long userId)
userId
- the user's Twitter ID
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials or an application access token.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.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials or an application access token.CursoredList<Long> getFollowerIds(String screenName)
screenName
- the user's Twitter screen name
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials or an application access token.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.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials or an application access token.String follow(long userId)
userId
- The Twitter ID of the user to follow
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.String follow(String screenName)
screenName
- The screen name of the user to follow
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.String unfollow(long userId)
userId
- the Twitter ID of the user to unfollow
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.String unfollow(String screenName)
screenName
- the screen name of the user to unfollow
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.TwitterProfile enableNotifications(long userId)
userId
- the Twitter ID of the user to receive notifications for.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.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.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.TwitterProfile disableNotifications(long userId)
userId
- the Twitter ID of the user to stop notifications for.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.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.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.CursoredList<Long> getIncomingFriendships()
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.CursoredList<Long> getIncomingFriendships(long cursor)
cursor
- the cursor of the page to retrieve.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.CursoredList<Long> getOutgoingFriendships()
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.CursoredList<Long> getOutgoingFriendships(long cursor)
cursor
- the cursor of the page to retrieve.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |