|
Spring Social Twitter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BlockOperations
Interface defining the operations for blocking and unblocking users
| Method Summary | |
|---|---|
TwitterProfile |
block(long userId)
Blocks a user. |
TwitterProfile |
block(java.lang.String screenName)
Blocks a user. |
CursoredList<java.lang.Long> |
getBlockedUserIds()
Retrieves a list of user IDs for the users that the authenticating user has blocked. |
CursoredList<java.lang.Long> |
getBlockedUserIdsInCursor(long cursor)
Retrieves a list of user IDs for the users that the authenticating user has blocked. |
CursoredList<TwitterProfile> |
getBlockedUsers()
Retrieves a list of users that the authenticating user has blocked. |
CursoredList<TwitterProfile> |
getBlockedUsersInCursor(long cursor)
Retrieves a list of users that the authenticating user has blocked. |
TwitterProfile |
unblock(long userId)
Unblocks a user. |
TwitterProfile |
unblock(java.lang.String screenName)
Unblocks a user. |
| Method Detail |
|---|
TwitterProfile block(long userId)
userId - the ID of the user to block.
TwitterProfile of the blocked user.
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 block(java.lang.String screenName)
screenName - the screen name of the user to block.
TwitterProfile of the blocked user.
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 unblock(long userId)
userId - the ID of the user to unblock.
TwitterProfile of the unblocked user.
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 unblock(java.lang.String screenName)
screenName - the screen name of the user to unblock.
TwitterProfile of the unblocked user.
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> getBlockedUsers()
TwitterProfiles for the users that are blocked.
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> getBlockedUsersInCursor(long cursor)
cursor - the cursor to retrieve results from. -1 will retrieve the first cursored page of results.
TwitterProfiles for the users that are blocked.
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> getBlockedUserIds()
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> getBlockedUserIdsInCursor(long cursor)
cursor - the cursor to retrieve results from. -1 will retrieve the first cursored page of results.
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 | ||||||||