|
Spring Social Twitter | ||||||||
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(java.lang.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(java.lang.String screenName)
Enable mobile device notifications from Twitter for the specified user. |
java.lang.String |
follow(long userId)
Allows the authenticated user to follow (create a friendship) with another user. |
java.lang.String |
follow(java.lang.String screenName)
Allows the authenticated user to follow (create a friendship) with another user. |
CursoredList<java.lang.Long> |
getFollowerIds()
Retrieves a list of up to 5000 IDs for the Twitter users that follow the authenticated user. |
CursoredList<java.lang.Long> |
getFollowerIds(long userId)
Retrieves a list of up to 5000IDs for the Twitter users that follow the given user. |
CursoredList<java.lang.Long> |
getFollowerIds(java.lang.String screenName)
Retrieves a list of up to 5000 IDs for the Twitter users that follow the given user. |
CursoredList<java.lang.Long> |
getFollowerIdsInCursor(long cursor)
Retrieves a list of up to 5000 IDs for the Twitter users that follow the authenticated user. |
CursoredList<java.lang.Long> |
getFollowerIdsInCursor(long userId,
long cursor)
Retrieves a list of up to 5000IDs for the Twitter users that follow the given user. |
CursoredList<java.lang.Long> |
getFollowerIdsInCursor(java.lang.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(java.lang.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(java.lang.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<java.lang.Long> |
getFriendIds()
Retrieves a list of up to 5000 IDs for the Twitter users that the authenticated user follows. |
CursoredList<java.lang.Long> |
getFriendIds(long userId)
Retrieves a list of up to 5000 IDs for the Twitter users that the given user follows. |
CursoredList<java.lang.Long> |
getFriendIds(java.lang.String screenName)
Retrieves a list of up to 5000 IDs for the Twitter users that the given user follows. |
CursoredList<java.lang.Long> |
getFriendIdsInCursor(long cursor)
Retrieves a list of up to 5000 IDs for the Twitter users that the authenticated user follows. |
CursoredList<java.lang.Long> |
getFriendIdsInCursor(long userId,
long cursor)
Retrieves a list of up to 5000 IDs for the Twitter users that the given user follows. |
CursoredList<java.lang.Long> |
getFriendIdsInCursor(java.lang.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(java.lang.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(java.lang.String screenName,
long cursor)
Retrieves a list of up to 5000 users that the given user follows. |
CursoredList<java.lang.Long> |
getIncomingFriendships()
Returns an array of numeric IDs for every user who has a pending request to follow the authenticating user. |
CursoredList<java.lang.Long> |
getIncomingFriendships(long cursor)
Returns an array of numeric IDs for every user who has a pending request to follow the authenticating user. |
CursoredList<java.lang.Long> |
getOutgoingFriendships()
Returns an array of numeric IDs for every protected user for whom the authenticating user has a pending follow request. |
CursoredList<java.lang.Long> |
getOutgoingFriendships(long cursor)
Returns an array of numeric IDs for every protected user for whom the authenticating user has a pending follow request. |
java.lang.String |
unfollow(long userId)
Allows the authenticated use to unfollow (destroy a friendship) with another user |
java.lang.String |
unfollow(java.lang.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(java.lang.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(java.lang.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<java.lang.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<java.lang.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<java.lang.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<java.lang.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<java.lang.Long> getFriendIds(java.lang.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<java.lang.Long> getFriendIdsInCursor(java.lang.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(java.lang.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(java.lang.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<java.lang.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<java.lang.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<java.lang.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<java.lang.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<java.lang.Long> getFollowerIds(java.lang.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<java.lang.Long> getFollowerIdsInCursor(java.lang.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.java.lang.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.java.lang.String follow(java.lang.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.java.lang.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.java.lang.String unfollow(java.lang.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(java.lang.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(java.lang.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<java.lang.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<java.lang.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<java.lang.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<java.lang.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.
|
Spring Social Twitter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |