package
0.0.0-20221104224141-912508c3888b
Repository: https://github.com/dghubble/go-twitter.git
Documentation: pkg.go.dev

# Functions

Bool returns a new pointer to the given bool value.
Float returns a new pointer to the given float64 value.
NewClient returns a new Client.
NewSwitchDemux returns a new SwitchMux which has NoOp handler functions.

# Structs

AccountService provides a method for account credential verification.
AccountUpdateProfileParams are the params for AccountService.UpdateProfile.
AccountVerifyParams are the params for AccountService.VerifyCredentials.
APIError represents a Twitter API Error response https://dev.twitter.com/overview/api/response-codes.
BlockCreateParams are the parameters for BlockService.Create.
BlockDestroyParams are the parameters for BlockService.Destroy.
BlockService provides methods for blocking specific user.
BoundingBox represents the bounding coordinates (longitude, latitutde) defining the bounds of a box containing a Place entity.
Client is a Twitter client for making Twitter API requests.
ClosestParams are the parameters for Trends.Closest.
Coordinates are pairs of longitude and latitude locations.
DirectMessage is a direct message to a single recipient (DEPRECATED).
DirectMessageCTA contains CTA data for a Direct Message event.
DirectMessageData is the message data contained in a Direct Message event.
DirectMessageDataAttachment contains message data attachments for a Direct Message event.
DirectMessageDestroyParams are the parameters for DirectMessageService.Destroy (DEPRECATED).
DirectMessageEvent is a single Direct Message sent or received.
DirectMessageEventMessage contains message contents, along with sender and target recipient.
DirectMessageEvents lists Direct Message events.
DirectMessageEventsListParams are the parameters for DirectMessageService.EventsList.
DirectMessageEventsNewParams are the parameters for DirectMessageService.EventsNew.
DirectMessageEventsShowParams are the parameters for DirectMessageService.EventsShow.
DirectMessageGetParams are the parameters for DirectMessageService.Get (DEPRECATED).
DirectMessageNewParams are the parameters for DirectMessageService.New (DEPRECATED).
DirectMessageQuickReply contains quick reply data for a Direct Message event.
DirectMessageQuickReplyOption represents Option object for a Direct Message's Quick Reply.
DirectMessageSentParams are the parameters for DirectMessageService.Sent (DEPRECATED).
DirectMessageService provides methods for accessing Twitter direct message API endpoints.
DirectMessageTarget specifies the recipient of a Direct Message event.
Entities represent metadata and context info parsed from Twitter components.
ErrorDetail represents an individual item in an APIError.
Event is a non-Tweet notification message (e.g.
ExtendedEntity contains media information.
ExtendedTweet represents fields embedded in extended Tweets when served in compatibility mode (default).
FavoriteCreateParams are the parameters for FavoriteService.Create.
FavoriteDestroyParams are the parameters for FavoriteService.Destroy.
FavoriteListParams are the parameters for FavoriteService.List.
FavoriteService provides methods for accessing Twitter favorite API endpoints.
FollowerIDParams are the parameters for FollowerService.Ids.
FollowerIDs is a cursored collection of follower ids.
FollowerListParams are the parameters for FollowerService.List.
Followers is a cursored collection of followers.
FollowerService provides methods for accessing Twitter followers endpoints.
FriendIDParams are the parameters for FriendService.Ids.
FriendIDs is a cursored collection of friend ids.
FriendListParams are the parameters for FriendService.List.
Friends is a cursored collection of friends.
FriendService provides methods for accessing Twitter friends endpoints.
FriendshipCreateParams are parameters for FriendshipService.Create.
FriendshipDestroyParams are paramenters for FriendshipService.Destroy.
FriendshipLookupParams are parameters for FriendshipService.Lookup.
FriendshipPendingParams are paramenters for FriendshipService.Outgoing.
FriendshipResponse represents the target user.
FriendshipService provides methods for accessing Twitter friendship API endpoints.
FriendshipShowParams are paramenters for FriendshipService.Show.
FriendsList is a list of some of a user's friends.
HashtagEntity represents a hashtag which has been parsed from text.
HomeTimelineParams are the parameters for TimelineService.HomeTimeline.
List represents a Twitter List.
ListsCreateParams are the parameters for ListsService.Create.
ListsDestroyParams are the parameters for ListsService.Destroy.
ListsListParams are the parameters for ListsService.List.
ListsMembersCreateAllParams are the parameters for ListsService.MembersCreateAll.
ListsMembersCreateParams are the parameters for ListsService.MembersCreate.
ListsMembersDestroyAllParams are the parameters for ListsService.MembersDestroyAll.
ListsMembersDestroyParams are the parameters for ListsService.MembersDestroy.
ListsMembershipsParams are the parameters for ListsService.Memberships.
ListsMembersParams are the parameters for ListsService.Members.
ListsMembersShowParams are the parameters for ListsService.MembersShow.
ListsOwnershipsParams are the parameters for ListsService.Ownerships.
ListsService provides methods for accessing Twitter lists endpoints.
ListsShowParams are the parameters for ListsService.Show.
ListsStatusesParams are the parameters for ListsService.Statuses.
ListsSubscribersCreateParams are the parameters for ListsService.SubscribersCreate.
ListsSubscribersDestroyParams are the parameters for ListsService.SubscribersDestroy.
ListsSubscribersParams are the parameters for ListsService.Subscribers.
ListsSubscribersShowParams are the parameters for ListsService.SubscribersShow.
ListsSubscriptionsParams are the parameters for ListsService.Subscriptions.
ListsUpdateParams are the parameters for ListsService.Update.
Location represents a twitter Location.
LocationDeletion indicates geolocation data must be stripped from a range of Tweets.
MediaEntity represents media elements associated with a Tweet.
MediaSize describes the height, width, and resizing method used.
MediaSizes contain the different size media that are available.
Members is a cursored collection of list members.
Membership is a cursored collection of lists a user is on.
MentionEntity represents Twitter user mentions parsed from text.
MentionTimelineParams are the parameters for TimelineService.MentionTimeline.
OEmbedTweet represents a Tweet in oEmbed format.
Ownership is a cursored collection of lists a user owns.
Place represents a Twitter Place / Location https://dev.twitter.com/overview/api/places.
PlaceType represents a twitter trends PlaceType.
PollEntity represents a Twitter Poll from a Tweet.
PollOption represents a position option in a PollEntity.
PremiumSearch represents the result of a Tweet search.
PremiumSearchCount describes a response of Premium search API's count endpoint.
PremiumSearchCountTweetParams are the parameters for PremiumSearchService.CountFullArchive and Count30Days.
PremiumSearchService provides methods for accessing Twitter premium search API endpoints.
PremiumSearchTweetParams are the parameters for PremiumSearchService.SearchFullArchive and Search30Days.
RateLimit summarizes current rate limits of resource families.
RateLimitContext contains auth context.
RateLimitParams are the parameters for RateLimitService.Status.
RateLimitResource contains limit status data for a single endpoint.
RateLimitResources contains all limit status data for endpoints group by resources.
RateLimitService provides methods for accessing Twitter rate limits API endpoints.
Relationship represents the relation between a source user and target user.
RelationshipResponse contains a relationship.
RelationshipSource represents the source user.
RelationshipTarget represents the target user.
RequestCountParameters describes a request parameter that was passed to a Premium search API.
RequestParameters describes a request parameter that was passed to a Premium search API.
RetweeterIDs is a cursored collection of User IDs that retweeted a Tweet.
RetweetsOfMeTimelineParams are the parameters for TimelineService.RetweetsOfMeTimeline.
Search represents the result of a Tweet search.
SearchMetadata describes a Search result.
SearchService provides methods for accessing Twitter search API endpoints.
SearchTweetParams are the parameters for SearchService.Tweets.
StallWarning indicates the client is falling behind in the stream.
StatusDeletion indicates that a given Tweet has been deleted.
StatusDestroyParams are the parameters for StatusService.Destroy.
StatusLookupParams are the parameters for StatusService.Lookup.
StatusOEmbedParams are the parameters for StatusService.OEmbed.
StatusRetweeterParams are the parameters for StatusService.Retweeters.
StatusRetweetParams are the parameters for StatusService.Retweet.
StatusRetweetsParams are the parameters for StatusService.Retweets.
StatusService provides methods for accessing Twitter status API endpoints.
StatusShowParams are the parameters for StatusService.Show.
StatusUnretweetParams are the parameters for StatusService.Unretweet.
StatusUpdateParams are the parameters for StatusService.Update.
StatusWithheld indicates a Tweet with the given ID, belonging to UserId, has been withheld in certain countries.
Stream maintains a connection to the Twitter Streaming API, receives messages from the streaming response, and sends them on the Messages channel from a goroutine.
StreamDisconnect indicates the stream has been shutdown for some reason.
StreamFilterParams are parameters for StreamService.Filter.
StreamFirehoseParams are the parameters for StreamService.Firehose.
StreamLimit indicates a stream matched more statuses than its rate limit allowed.
StreamSampleParams are the parameters for StreamService.Sample.
StreamService provides methods for accessing the Twitter Streaming API.
StreamSiteParams are the parameters for StreamService.Site.
StreamUserParams are the parameters for StreamService.User.
Subscribed is a cursored collection of lists the user is subscribed to.
Subscribers is a cursored collection of users that subscribe to a list.
SwitchDemux receives messages and uses a type switch to send each typed message to a handler function.
SymbolEntity represents a symbol (e.g.
TimelineService provides methods for accessing Twitter status timeline API endpoints.
Trend represents a twitter trend.
TrendsList represents a list of twitter trends.
TrendsLocation represents a twitter trend location.
TrendsPlaceParams are the parameters for Trends.Place.
TrendsService provides methods for accessing Twitter trends API endpoints.
Tweet represents a Twitter Tweet, previously called a status.
TweetCount represents a count of Tweets in the TimePeriod matching a search query.
TweetIdentifier represents the id by which a Tweet can be identified.
UnwoundURL represents an enhanced URL https://developer.twitter.com/en/docs/twitter-api/enterprise/enrichments/overview/expanded-and-enhanced-urls.
URLEntity represents a URL which has been parsed from text.
User represents a Twitter User.
UserEntities contain Entities parsed from User url and description fields.
UserLookupParams are the parameters for UserService.Lookup.
UserSearchParams are the parameters for UserService.Search.
UserService provides methods for accessing Twitter user API endpoints.
UserShowParams are the parameters for UserService.Show.
UserTimelineParams are the parameters for TimelineService.UserTimeline.
UserWithheld indicates a User with the given ID has been withheld in certain countries.
VideoInfo is available on video media objects.
VideoVariant describes one of the available video formats.

# Interfaces

A Demux receives interface{} messages individually or from a channel and sends those messages to one or more outputs determined by the implementation.

# Type aliases

Indices represent the start and end offsets within text.