public interface BlockOperations
| Modifier and Type | Method and Description |
|---|---|
TwitterProfile |
block(long userId)
Blocks a user.
|
TwitterProfile |
block(String screenName)
Blocks a user.
|
CursoredList<Long> |
getBlockedUserIds()
Retrieves a list of user IDs for the users that the authenticating user has blocked.
|
CursoredList<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(String screenName)
Unblocks a user.
|
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(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(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<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<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.