public interface TwitterBlockService
| Modifier and Type | Method and Description |
|---|---|
TwitterProfile |
block(long userId)
Blocks a user.
|
TwitterProfile |
block(String screenName)
Blocks a user.
|
List<Long> |
getBlockedUserIds()
Retrieves a list of user IDs for the users that the authenticating user has blocked.
|
List<TwitterProfile> |
getBlockedUsers()
Retrieves a list of users that the authenticating user has blocked.
|
List<TwitterProfile> |
getBlockedUsers(int page,
int pageSize)
Retrieves a list of users that the authenticating user has blocked.
|
boolean |
isBlocking(long userId)
Determines if the user has blocked a specific user.
|
boolean |
isBlocking(String screenName)
Determines if the user has blocked a specific user.
|
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.ApiException - if there is an error while communicating with Twitter.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.ApiException - if there is an error while communicating with Twitter.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.ApiException - if there is an error while communicating with Twitter.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.ApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.List<TwitterProfile> getBlockedUsers()
TwitterProfiles for the users that are blocked.ApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.List<TwitterProfile> getBlockedUsers(int page, int pageSize)
page - the page of blocked users to returnpageSize - the number of users per pageTwitterProfiles for the users that are blocked.ApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.List<Long> getBlockedUserIds()
ApiException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.boolean isBlocking(long userId)
userId - the ID of the user to check for a block.ApiException - if there is an error while communicating with Twitter.boolean isBlocking(String screenName)
screenName - the screen name of the user to check for a block.ApiException - if there is an error while communicating with Twitter.Copyright © 2013. All Rights Reserved.