Package | Description |
---|---|
twitter4j |
general package for Twitter4J
|
twitter4j.api |
APIs represents Twitter API resources
|
Modifier and Type | Interface and Description |
---|---|
interface |
DirectMessageList
List of
DirectMessage
like string cursor version of PagableResponseList |
interface |
PagableResponseList<T extends TwitterResponse>
ResponseList with cursor support.
|
Modifier and Type | Method and Description |
---|---|
ResponseList<Location> |
TrendsResources.getAvailableTrends()
Returns the locations that Twitter has trending topic information for.
|
ResponseList<Location> |
TrendsResources.getClosestTrends(GeoLocation location)
Returns the locations that Twitter has trending topic information for, closest to a specified location.
The response is an array of "locations" that encode the location's WOEID and some other human-readable information such as a canonical name and country the location belongs in. A WOEID is a Yahoo! Where On Earth ID. |
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.
|
ResponseList<DirectMessage> |
DirectMessagesResources.getDirectMessages()
Deprecated.
use
DirectMessagesResources.getDirectMessages(int) instead |
ResponseList<DirectMessage> |
DirectMessagesResources.getDirectMessages(Paging paging)
Deprecated.
use
DirectMessagesResources.getDirectMessages(int) instead |
ResponseList<Status> |
FavoritesResources.getFavorites()
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
|
ResponseList<Status> |
FavoritesResources.getFavorites(long userId)
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
|
ResponseList<Status> |
FavoritesResources.getFavorites(long userId,
Paging paging)
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
|
ResponseList<Status> |
FavoritesResources.getFavorites(Paging paging)
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
|
ResponseList<Status> |
FavoritesResources.getFavorites(String screenName)
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
|
ResponseList<Status> |
FavoritesResources.getFavorites(String screenName,
Paging paging)
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
|
ResponseList<Status> |
TimelinesResources.getHomeTimeline()
Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends.
|
ResponseList<Status> |
TimelinesResources.getHomeTimeline(Paging paging)
Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends.
|
ResponseList<HelpResources.Language> |
HelpResources.getLanguages()
Returns the list of languages supported by Twitter along with their ISO 639-1 code.
|
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.
|
ResponseList<Status> |
TimelinesResources.getMentionsTimeline()
Returns the 20 most recent mentions (tweets containing a users's @screen_name) for the authenticating user.
The timeline returned is the equivalent of the one seen when you view your mentions on twitter.com. This method can only return up to 800 tweets. See Working with Timelines for instructions on traversing timelines. |
ResponseList<Status> |
TimelinesResources.getMentionsTimeline(Paging paging)
Returns the 20 most recent mentions (tweets containing a users's @screen_name) for the authenticating user.
The timeline returned is the equivalent of the one seen when you view your mentions on twitter.com. This method can only return up to 800 tweets. See Working with Timelines for instructions on traversing timelines. |
ResponseList<Status> |
TweetsResources.getRetweets(long statusId)
Returns up to 100 of the first retweets of a given tweet.
|
ResponseList<Status> |
TimelinesResources.getRetweetsOfMe()
Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
|
ResponseList<Status> |
TimelinesResources.getRetweetsOfMe(Paging paging)
Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
|
ResponseList<SavedSearch> |
SavedSearchesResources.getSavedSearches()
Returns the authenticated user's saved search queries.
|
ResponseList<DirectMessage> |
DirectMessagesResources.getSentDirectMessages()
Deprecated.
use
DirectMessagesResources.getDirectMessages(int) instead |
ResponseList<DirectMessage> |
DirectMessagesResources.getSentDirectMessages(Paging paging)
Deprecated.
use
DirectMessagesResources.getDirectMessages(int) instead |
ResponseList<Place> |
PlacesGeoResources.getSimilarPlaces(GeoLocation location,
String name,
String containedWithin,
String streetAddress)
Locates places near the given coordinates which are similar in name.
|
ResponseList<Category> |
SuggestedUsersResources.getSuggestedUserCategories()
Access to Twitter's suggested user list.
|
ResponseList<UserList> |
ListsResources.getUserLists(long listOwnerUserId)
List the lists of the specified user.
|
ResponseList<UserList> |
ListsResources.getUserLists(long listOwnerUserId,
boolean reverse)
List the lists of the specified user.
|
ResponseList<UserList> |
ListsResources.getUserLists(String listOwnerScreenName)
List the lists of the specified user.
|
ResponseList<UserList> |
ListsResources.getUserLists(String listOwnerScreenName,
boolean reverse)
List the lists of the specified user.
|
ResponseList<Status> |
ListsResources.getUserListStatuses(long listId,
Paging paging)
Show tweet timeline for members of the specified list.
|
ResponseList<Status> |
ListsResources.getUserListStatuses(long ownerId,
String slug,
Paging paging)
Show tweet timeline for members of the specified list.
|
ResponseList<Status> |
ListsResources.getUserListStatuses(String ownerScreenName,
String slug,
Paging paging)
Show tweet timeline for members 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<Status> |
TimelinesResources.getUserTimeline()
Returns the 20 most recent statuses posted from the authenticating user.
|
ResponseList<Status> |
TimelinesResources.getUserTimeline(long userId)
Returns the 20 most recent statuses posted from the authenticating user.
|
ResponseList<Status> |
TimelinesResources.getUserTimeline(long userId,
Paging paging)
Returns the 20 most recent statuses posted from the authenticating user.
|
ResponseList<Status> |
TimelinesResources.getUserTimeline(Paging paging)
Returns the 20 most recent statuses posted from the authenticating user.
|
ResponseList<Status> |
TimelinesResources.getUserTimeline(String screenName)
Returns the 20 most recent statuses posted from the authenticating user.
|
ResponseList<Status> |
TimelinesResources.getUserTimeline(String screenName,
Paging paging)
Returns the 20 most recent statuses posted from the authenticating user.
|
ResponseList<Status> |
TweetsResources.lookup(long... ids)
Returns fully-hydrated tweet objects for up to 100 tweets per request, as specified by comma-separated values passed to the id parameter.
|
ResponseList<Friendship> |
FriendsFollowersResources.lookupFriendships(long... ids)
Returns the relationship of the authenticating user to the specified users.
|
ResponseList<Friendship> |
FriendsFollowersResources.lookupFriendships(String... screenNames)
Returns the relationship of the authenticating user to the specified users.
|
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<Place> |
PlacesGeoResources.reverseGeoCode(GeoQuery query)
Search for places (cities and neighborhoods) that can be attached to a statuses/update.
|
ResponseList<Place> |
PlacesGeoResources.searchPlaces(GeoQuery query)
Search for places that can be attached to a statuses/update.
|
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. |
Copyright © 2020. All rights reserved.