twitter4j.api
Interface BlockMethodsAsync
- All Known Subinterfaces:
- AsyncTwitter
- All Known Implementing Classes:
- AsyncTwitterImpl
public interface BlockMethodsAsync
- Author:
- Joern Huxhorn - jhuxhorn at googlemail.com
Method Summary |
void |
createBlock(long userId)
Blocks the user specified in the ID parameter as the authenticating user. |
void |
createBlock(java.lang.String screenName)
Blocks the user specified in the ID parameter as the authenticating user. |
void |
destroyBlock(long userId)
Un-blocks the user specified in the ID parameter as the authenticating user. |
void |
destroyBlock(java.lang.String screenName)
Un-blocks the user specified in the ID parameter as the authenticating user. |
void |
existsBlock(long userId)
Returns if the authenticating user is blocking a target user. |
void |
existsBlock(java.lang.String screenName)
Returns if the authenticating user is blocking a target user. |
void |
getBlockingUsers()
Returns a list of user objects that the authenticating user is blocking. |
void |
getBlockingUsers(int page)
Returns a list of user objects that the authenticating user is blocking. |
void |
getBlockingUsersIDs()
Returns an array of numeric user ids the authenticating user is blocking. |
createBlock
void createBlock(java.lang.String screenName)
- Blocks the user specified in the ID parameter as the authenticating user. Returns the blocked user in the requested format when successful.
This method calls http://api.twitter.com/1/blocks/create%C2%A0
- Parameters:
screenName
- the screen_name of the user to block- Since:
- Twitter4J 2.0.1
- See Also:
- POST blocks/create | dev.twitter.com
createBlock
void createBlock(long userId)
- Blocks the user specified in the ID parameter as the authenticating user. Returns the blocked user in the requested format when successful.
This method calls http://api.twitter.com/1/blocks/create%C2%A0
- Parameters:
userId
- the screen_name of the user to block- Since:
- Twitter4J 2.1.0
- See Also:
- POST blocks/create | dev.twitter.com
destroyBlock
void destroyBlock(java.lang.String screenName)
- Un-blocks the user specified in the ID parameter as the authenticating user. Returns the un-blocked user in the requested format when successful.
This method calls http://api.twitter.com/1/blocks/create%C2%A0
- Parameters:
screenName
- the screen_name of the user to block- Since:
- Twitter4J 2.0.1
- See Also:
- POST blocks/destroy | dev.twitter.com
destroyBlock
void destroyBlock(long userId)
- Un-blocks the user specified in the ID parameter as the authenticating user. Returns the un-blocked user in the requested format when successful.
This method calls http://api.twitter.com/1/blocks/create%C2%A0
- Parameters:
userId
- the ID of the user to block- Since:
- Twitter4J 2.1.0
- See Also:
- POST blocks/destroy | dev.twitter.com
existsBlock
void existsBlock(java.lang.String screenName)
- Returns if the authenticating user is blocking a target user. Will return the blocked user's object if a block exists, and error with a HTTP 404 response code otherwise.
This method calls http://api.twitter.com/1/blocks/exists/id.xml
- Parameters:
screenName
- The screen_name of the potentially blocked user.- Since:
- Twitter4J 2.0.4
- See Also:
- GET blocks/exists | dev.twitter.com
existsBlock
void existsBlock(long userId)
- Returns if the authenticating user is blocking a target user. Will return the blocked user's object if a block exists, and error with a HTTP 404 response code otherwise.
This method calls http://api.twitter.com/1/blocks/exists/id.xml
- Parameters:
userId
- The ID of the potentially blocked user.- Since:
- Twitter4J 2.1.0
- See Also:
- GET blocks/exists | dev.twitter.com
getBlockingUsers
void getBlockingUsers()
- Returns a list of user objects that the authenticating user is blocking.
This method calls http://api.twitter.com/1/blocks/blocking.xml
- Since:
- Twitter4J 2.0.4
- See Also:
- GET blocks/blocking | dev.twitter.com
getBlockingUsers
void getBlockingUsers(int page)
- Returns a list of user objects that the authenticating user is blocking.
This method calls http://api.twitter.com/1/blocks/blocking.xml
- Parameters:
page
- the number of page- Since:
- Twitter4J 2.0.4
- See Also:
- GET blocks/blocking | dev.twitter.com
getBlockingUsersIDs
void getBlockingUsersIDs()
- Returns an array of numeric user ids the authenticating user is blocking.
This method calls http://api.twitter.com/1/blocks/blocking/ids
- Since:
- Twitter4J 2.0.4
- See Also:
- GET blocks/blocking/ids | dev.twitter.com