twitter_api_v2 library

Classes

BatchComplianceData
BlockStateData
BookmarkStateData
ComplianceService
This class provides methods to easily access endpoints based on Compliance.
DeleteStateData
DirectMessagesService
DMAttachments
DMEventData
DMEventMeta
DMReferencedTweet
EmptyData
This class indicates that the response from Twitter API does not include data field.
EntryChannel
FilteredStreamResponse
FilteringRule
FilteringRuleData
FilteringRuleMeta
FilteringRuleParam
The object that contains filtering rule information.
FollowStateData
ForwardPaginationControl
ForwardPagingEvent<D, M extends ForwardPageable>
Geo
GeoCoordinates
GeoService
This class provides methods to easily access endpoints based on Geo.
Includes
LikeStateData
ListData
The list object contains Twitter Lists metadata describing the referenced List.
ListMeta
ListsService
This class provides methods to easily access endpoints based on List.
Locale
LogicalChannel
MatchingRule
MediaData
Media refers to any image, GIF, or video attached to a Tweet. The media object is not a primary object on any endpoint, but can be found and expanded in the Tweet object.
MediaService
MemberStateData
Mention
MessageAttachmentsParam
MessageData
MessageParam
MuteStateData
OAuthResponse
OAuthTokens
This class represents an access token used for OAuth 1.0a authentication.
OAuthUtils
Provides the convenience utils for OAuth.
OrganicMediaMetrics
OrganicTweetMetrics
PaginationControl
PagingEvent<D, M extends Pageable>
PinnedStateData
PlaceData
The place tagged in a Tweet is not a primary object on any endpoint, but can be found and expanded in the Tweet resource.
PlaceGeo
PollData
A poll included in a Tweet is not a primary object on any endpoint, but can be found and expanded in the Tweet object.
PollOption
PostLogicalChannel
PrivateMediaMetrics
PrivateTweetMetrics
ProfileBannerVariant
ProfileBannerVariantsData
PromotedMediaMetrics
PromotedTweetMetrics
PublicMediaMetrics
PublicTweetMetrics
Range
RateLimit
ReferencedTweet
ReplyStateData
RetryConfig
This class represents an automatic retry configuration.
RetryEvent
This class represents the event during the retry process.
RetweetStateData
Serializable
SpaceData
Spaces allow expression and interaction via live audio conversations.
SpaceMeta
SpacesService
This class provides methods to easily access endpoints based on Space.
Tag
TopicData
TrendData
TrendingLocationData
TrendsService
This class provides methods to easily access endpoints based on Trends.
TweetAttachments
TweetContextAnnotation
TweetContextAnnotationGroup
TweetCountData
TweetCountMeta
TweetData
Tweets are the basic building block of all things Twitter. The Tweet object has a long list of root-level fields, such as id, text, and createdAt.
TweetEditControls
TweetEntities
TweetGeoParam
The object that contains location information for a Tweet.
TweetMediaParam
The object that contains media information being attached to create Tweet.
TweetMeta
TweetParam
TweetPollParam
The object that contains options for a Tweet with a poll.
TweetReplyParam
The object that contains information of the Tweet being replied to.
TweetsService
This class provides methods to easily access endpoints based on Tweet.
TweetWithheld
TwitterApi
This class represents Twitter API v2.0.
TwitterRequest
TwitterResponse<D, M>
The class represents the response from Twitter API v2.
TwitterStreamResponse<T>
UpdateStateData
UploadedMediaData
This object represents uploaded media data.
UploadError
UploadEvent
Url
UserData
The user object contains Twitter user account metadata describing the referenced user.
UserDescriptionEntity
UserEntities
UserMeta
UsersService
This class provides methods to easily access endpoints based on User.
UserUrlEntity
UserWithheld

Enums

ComplianceStreamPartition
Country
DecahosePartition
DMEventExpansion
DMEventField
DMEventType
ExcludeTweetType
GeoGranularity
HttpMethod
HttpStatus
JobStatus
This enum represents the compliance job status.
JobType
This represents the compliance job type.
Language
ListExpansion
Represents an extensible field about List.
ListField
MediaCategory
MediaField
MediaType
PlaceField
PlaceType
PollField
ReplySetting
This enum is used to control who can reply to Tweet.
Scope
Scopes allow you to set granular access for your App so that your App only has the permissions that it needs. To learn more about what scopes map to what endpoints, see authentication mapping guide.
SortOrder
SpaceExpansion
Represents an extensible field about Space.
SpaceField
SpaceLanguage
SpaceState
This enum represents the state of the space.
TopicField
TweetCountGranularity
It represents the granularity of the tweet count.
TweetExpansion
Represents an extensible field about Tweet.
TweetField
TweetType
UploadState
UserExpansion
Represents an extensible field about User.
UserField
UserVerifiedType

Exceptions / Errors

DataNotFoundException
This object is thrown to indicate that the data associated with a particular condition does not exist on Twitter's server.
RateLimitExceededException
This exception indicates that the number of requests for a particular endpoint exceeds the rate limit defined by the Twitter API.
TwitterException
This exception indicates that an unexpected error occurred when communicating with the Twitter API.
TwitterUploadException
This class indicates that an exception occurred during a file upload to Twitter.
UnauthorizedException
This exception is thrown to indicate that the specified access token was not authorized by the server as a result of its use in the request.