twitter_api_v2 library

Classes

ComplianceData
ComplianceService
This class provides methods to easily access endpoints based on Compliance.
FilteredStreamResponse
FilteringRuleData
FilteringRuleMeta
FilteringRuleParam
The object that contains filtering rule information.
Geo
GeoCoordinates
Includes
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.
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.
Mention
OAuthTokens
This class represents an access token used for OAuth 1.0a authentication.
OAuthUtils
Provides the convenience utils for OAuth.
OrganicMediaMetrics
OrganicTweetMetrics
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
PrivateMediaMetrics
PrivateTweetMetrics
PromotedMediaMetrics
PromotedTweetMetrics
PublicMediaMetrics
PublicTweetMetrics
ReferencedTweet
RetryConfig
This class represents an automatic retry configuration.
RetryEvent
This class represents the event during the retry process.
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
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.
TweetEntities
TweetGeoParam
The object that contains location information for a Tweet.
TweetMediaParam
The object that contains media information being attached to create Tweet.
TweetMeta
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.
TwitterResponse<D, M>
The class represents the response from Twitter API v2.
Url
UserData
The user object contains Twitter user account metadata describing the referenced user.
UserMeta
UsersService
This class provides methods to easily access endpoints based on User.

Enums

ExcludeTweetType
JobStatus
This enum represents the compliance job status.
JobType
This represents the compliance job type.
ListExpansion
Represents an extensible field about List.
ListField
MediaField
MediaType
PlaceField
PollField
ReplySetting
This enum is used to control who can reply to Tweet.
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
TweetLanguage
TweetType
UserExpansion
Represents an extensible field about User.
UserField

Exceptions / Errors

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.
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.