twitter4j.api
Interface BlockMethodsAsync
- All Known Implementing Classes:
- AsyncTwitter
public interface BlockMethodsAsync
- Author:
- Joern Huxhorn - jhuxhorn at googlemail.com
Method Summary |
void |
createBlock(java.lang.String screenName)
Blocks the user specified in the ID parameter as the authenticating user. |
void |
createBlockAsync(int userId)
Blocks the user specified in the ID parameter as the authenticating user. |
void |
destroyBlock(int 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(int userId)
Tests if a friendship exists between two users. |
void |
existsBlock(java.lang.String screenName)
Tests if a friendship exists between two users. |
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:
- Twitter API Wiki / Twitter REST API Method: blocks%C2%A0create
createBlockAsync
void createBlockAsync(int 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:
- Twitter API Wiki / Twitter REST API Method: blocks%C2%A0create
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:
- Twitter API Wiki / Twitter REST API Method: blocks%C2%A0destroy
destroyBlock
void destroyBlock(int 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:
- Twitter API Wiki / Twitter REST API Method: blocks%C2%A0destroy
existsBlock
void existsBlock(java.lang.String screenName)
- Tests if a friendship exists between two users.
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:
- Twitter API Wiki / Twitter REST API Method: blocks exists
existsBlock
void existsBlock(int userId)
- Tests if a friendship exists between two users.
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:
- Twitter API Wiki / Twitter REST API Method: blocks exists
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:
- Twitter API Wiki / Twitter REST API Method: blocks blocking
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:
- Twitter API Wiki / Twitter REST API Method: blocks blocking
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:
- Twitter API Wiki / Twitter REST API Method: blocks blocking ids