Package | Description |
---|---|
twitter4j |
general package for Twitter4J
|
twitter4j.api |
APIs represents Twitter API resources
|
twitter4j.json |
this package is deprecated.
|
Modifier and Type | Method and Description |
---|---|
static User |
TwitterObjectFactory.createUser(String rawJSON)
Constructs a User object from rawJSON string.
|
User |
DirectMessage.getRecipient()
Deprecated.
use
DirectMessage.getRecipientId() instead |
User |
DirectMessage.getSender()
Deprecated.
use
DirectMessage.getSenderId() instead |
User |
UserList.getUser()
Returns the user of the list
|
User |
Status.getUser()
Return the user associated with the status.
This can be null if the instance is from User.getStatus(). |
Modifier and Type | Method and Description |
---|---|
User |
UsersResources.createBlock(long userId)
Blocks the user specified in the ID parameter as the authenticating user.
|
User |
UsersResources.createBlock(String screenName)
Blocks the user specified in the ID parameter as the authenticating user.
|
User |
FriendsFollowersResources.createFriendship(long userId)
Allows the authenticating users to follow the user specified in the ID parameter.
Returns the befriended user in the requested format when successful. |
User |
FriendsFollowersResources.createFriendship(long userId,
boolean follow)
Allows the authenticating users to follow the user specified in the ID parameter.
Returns the befriended user in the requested format when successful. |
User |
FriendsFollowersResources.createFriendship(String screenName)
Allows the authenticating users to follow the user specified in the ID parameter.
Returns the befriended user in the requested format when successful. |
User |
FriendsFollowersResources.createFriendship(String screenName,
boolean follow)
Allows the authenticating users to follow the user specified in the ID parameter.
Returns the befriended user in the requested format when successful. |
User |
UsersResources.createMute(long userId)
Mutes the user specified in the ID parameter as the authenticating user.
|
User |
UsersResources.createMute(String screenName)
Mutes the user specified in the screen name parameter as the authenticating user.
|
User |
UsersResources.destroyBlock(long userId)
Un-blocks the user specified in the ID parameter as the authenticating user.
|
User |
UsersResources.destroyBlock(String screen_name)
Un-blocks the user specified in the ID parameter as the authenticating user.
|
User |
FriendsFollowersResources.destroyFriendship(long userId)
Allows the authenticating users to unfollow the user specified in the ID parameter.
Returns the unfollowed user in the requested format when successful. |
User |
FriendsFollowersResources.destroyFriendship(String screenName)
Allows the authenticating users to unfollow the user specified in the ID parameter.
Returns the unfollowed user in the requested format when successful. |
User |
UsersResources.destroyMute(long userId)
Un-mutes the user specified in the ID parameter as the authenticating user.
|
User |
UsersResources.destroyMute(String screenName)
Un-mutes the user specified in the screen name parameter as the authenticating user.
|
User |
SpamReportingResource.reportSpam(long userId)
The user specified in the id is blocked by the authenticated user and reported as a spammer.
|
User |
SpamReportingResource.reportSpam(String screenName)
The user specified in the id is blocked by the authenticated user and reported as a spammer.
|
User |
UsersResources.showUser(long userId)
Returns extended information of a given user, specified by ID or screen name as per the required id parameter.
|
User |
UsersResources.showUser(String screenName)
Returns extended information of a given user, specified by ID or screen name as per the required id parameter.
|
User |
ListsResources.showUserListMembership(long listId,
long userId)
Check if a user is a member of the specified list.
This method calls https://api.twitter.com/1.1/lists/members/show.json |
User |
ListsResources.showUserListMembership(long ownerId,
String slug,
long userId)
Check if a user is a member of the specified list.
This method calls https://api.twitter.com/1.1/lists/members/show.json |
User |
ListsResources.showUserListMembership(String ownerScreenName,
String slug,
long userId)
Check if a user is a member of the specified list.
This method calls https://api.twitter.com/1.1/lists/members/show.json |
User |
ListsResources.showUserListSubscription(long listId,
long userId)
Check if the specified user is a subscriber of the specified list.
|
User |
ListsResources.showUserListSubscription(long ownerId,
String slug,
long userId)
Check if the specified user is a subscriber of the specified list.
|
User |
ListsResources.showUserListSubscription(String ownerScreenName,
String slug,
long userId)
Check if the specified user is a subscriber of the specified list.
|
User |
UsersResources.updateProfile(String name,
String url,
String location,
String description)
Sets values that users are able to set under the "Account" tab of their settings page.
|
User |
UsersResources.updateProfileBackgroundImage(File image,
boolean tile)
Deprecated.
Since Twitter4J 4.0.7
|
User |
UsersResources.updateProfileBackgroundImage(InputStream image,
boolean tile)
Updates the authenticating user's profile background image.
|
User |
UsersResources.updateProfileColors(String profileBackgroundColor,
String profileTextColor,
String profileLinkColor,
String profileSidebarFillColor,
String profileSidebarBorderColor)
Deprecated.
Since Twitter4J 4.0.5
|
User |
UsersResources.updateProfileImage(File image)
Updates the authenticating user's profile image.
|
User |
UsersResources.updateProfileImage(InputStream image)
Updates the authenticating user's profile image.
|
User |
UsersResources.verifyCredentials()
Returns an HTTP 200 OK response code and a representation of the requesting user if authentication was successful; returns a 401 status code and an error message if not.
|
Modifier and Type | Method and Description |
---|---|
PagableResponseList<User> |
UsersResources.getBlocksList()
Returns a list of user objects that the authenticating user is blocking.
|
PagableResponseList<User> |
UsersResources.getBlocksList(long cursor)
Returns a list of user objects that the authenticating user is blocking.
|
ResponseList<User> |
UsersResources.getContributees(long userId)
Returns an array of users that the specified user can contribute to.
|
ResponseList<User> |
UsersResources.getContributees(String screenName)
Returns an array of users that the specified user can contribute to.
|
ResponseList<User> |
UsersResources.getContributors(long userId)
Returns an array of users who can contribute to the specified account.
|
ResponseList<User> |
UsersResources.getContributors(String screenName)
Returns an array of users who can contribute to the specified account.
|
PagableResponseList<User> |
FriendsFollowersResources.getFollowersList(long userId,
long cursor)
Returns a cursored collection of user objects for users following the specified user.
At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. |
PagableResponseList<User> |
FriendsFollowersResources.getFollowersList(long userId,
long cursor,
int count)
Returns a cursored collection of user objects for users following the specified user.
At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. |
PagableResponseList<User> |
FriendsFollowersResources.getFollowersList(long userId,
long cursor,
int count,
boolean skipStatus,
boolean includeUserEntities)
Returns a cursored collection of user objects for users following the specified user.
At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. |
PagableResponseList<User> |
FriendsFollowersResources.getFollowersList(String screenName,
long cursor)
Returns a cursored collection of user objects for users following the specified user.
At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. |
PagableResponseList<User> |
FriendsFollowersResources.getFollowersList(String screenName,
long cursor,
int count)
Returns a cursored collection of user objects for users following the specified user.
At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. |
PagableResponseList<User> |
FriendsFollowersResources.getFollowersList(String screenName,
long cursor,
int count,
boolean skipStatus,
boolean includeUserEntities)
Returns a cursored collection of user objects for users following the specified user.
At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. |
PagableResponseList<User> |
FriendsFollowersResources.getFriendsList(long userId,
long cursor)
Returns a cursored collection of user objects for every user the specified user is following (otherwise known as their "friends").
At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. |
PagableResponseList<User> |
FriendsFollowersResources.getFriendsList(long userId,
long cursor,
int count)
Returns a cursored collection of user objects for every user the specified user is following (otherwise known as their "friends").
At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. |
PagableResponseList<User> |
FriendsFollowersResources.getFriendsList(long userId,
long cursor,
int count,
boolean skipStatus,
boolean includeUserEntities)
Returns a cursored collection of user objects for every user the specified user is following (otherwise known as their "friends").
At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. |
PagableResponseList<User> |
FriendsFollowersResources.getFriendsList(String screenName,
long cursor)
Returns a cursored collection of user objects for every user the specified user is following (otherwise known as their "friends").
At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. |
PagableResponseList<User> |
FriendsFollowersResources.getFriendsList(String screenName,
long cursor,
int count)
Returns a cursored collection of user objects for every user the specified user is following (otherwise known as their "friends").
At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. |
PagableResponseList<User> |
FriendsFollowersResources.getFriendsList(String screenName,
long cursor,
int count,
boolean skipStatus,
boolean includeUserEntities)
Returns a cursored collection of user objects for every user the specified user is following (otherwise known as their "friends").
At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. |
ResponseList<User> |
SuggestedUsersResources.getMemberSuggestions(String categorySlug)
Access the users in a given category of the Twitter suggested user list and return their most recent status if they are not a protected user.
|
PagableResponseList<User> |
UsersResources.getMutesList(long cursor)
Returns a list of user objects that the authenticating user is muting.
|
PagableResponseList<User> |
ListsResources.getUserListMembers(long listId,
int count,
long cursor)
Returns the members of the specified list.
|
PagableResponseList<User> |
ListsResources.getUserListMembers(long listId,
int count,
long cursor,
boolean skipStatus)
Returns the members of the specified list.
|
PagableResponseList<User> |
ListsResources.getUserListMembers(long listId,
long cursor)
Returns the members of the specified list.
|
PagableResponseList<User> |
ListsResources.getUserListMembers(long ownerId,
String slug,
int count,
long cursor)
Returns the members of the specified list.
|
PagableResponseList<User> |
ListsResources.getUserListMembers(long ownerId,
String slug,
int count,
long cursor,
boolean skipStatus)
Returns the members of the specified list.
|
PagableResponseList<User> |
ListsResources.getUserListMembers(long ownerId,
String slug,
long cursor)
Returns the members of the specified list.
|
PagableResponseList<User> |
ListsResources.getUserListMembers(String ownerScreenName,
String slug,
int count,
long cursor)
Returns the members of the specified list.
|
PagableResponseList<User> |
ListsResources.getUserListMembers(String ownerScreenName,
String slug,
int count,
long cursor,
boolean skipStatus)
Returns the members of the specified list.
|
PagableResponseList<User> |
ListsResources.getUserListMembers(String ownerScreenName,
String slug,
long cursor)
Returns the members of the specified list.
|
PagableResponseList<User> |
ListsResources.getUserListSubscribers(long listId,
int count,
long cursor)
Returns the subscribers of the specified list.
|
PagableResponseList<User> |
ListsResources.getUserListSubscribers(long listId,
int count,
long cursor,
boolean skipStatus)
Returns the subscribers of the specified list.
|
PagableResponseList<User> |
ListsResources.getUserListSubscribers(long listId,
long cursor)
Returns the subscribers of the specified list.
|
PagableResponseList<User> |
ListsResources.getUserListSubscribers(long ownerId,
String slug,
int count,
long cursor)
Returns the subscribers of the specified list.
|
PagableResponseList<User> |
ListsResources.getUserListSubscribers(long ownerId,
String slug,
int count,
long cursor,
boolean skipStatus)
Returns the subscribers of the specified list.
|
PagableResponseList<User> |
ListsResources.getUserListSubscribers(long ownerId,
String slug,
long cursor)
Returns the subscribers of the specified list.
|
PagableResponseList<User> |
ListsResources.getUserListSubscribers(String ownerScreenName,
String slug,
int count,
long cursor)
Returns the subscribers of the specified list.
|
PagableResponseList<User> |
ListsResources.getUserListSubscribers(String ownerScreenName,
String slug,
int count,
long cursor,
boolean skipStatus)
Returns the subscribers of the specified list.
|
PagableResponseList<User> |
ListsResources.getUserListSubscribers(String ownerScreenName,
String slug,
long cursor)
Returns the subscribers of the specified list.
|
ResponseList<User> |
SuggestedUsersResources.getUserSuggestions(String categorySlug)
Access the users in a given category of the Twitter suggested user list.
It is recommended that end clients cache this data for no more than one hour. |
ResponseList<User> |
UsersResources.lookupUsers(long... ids)
Return up to 100 users worth of extended information, specified by either ID, screen name, or combination of the two.
|
ResponseList<User> |
UsersResources.lookupUsers(String... screenNames)
Return up to 100 users worth of extended information, specified by either ID, screen name, or combination of the two.
|
ResponseList<User> |
UsersResources.searchUsers(String query,
int page)
Run a search for users similar to the Find People button on Twitter.com; the same results returned by people search on Twitter.com will be returned by using this API.
Usage note: It is only possible to retrieve the first 1000 matches from this API. |
Modifier and Type | Method and Description |
---|---|
static User |
DataObjectFactory.createUser(String rawJSON)
Deprecated.
Constructs a User object from rawJSON string.
|
Copyright © 2018. All rights reserved.