Versions in this module Expand all Collapse all v2 v2.1.5 Nov 18, 2022 Changes in this version + const ErrorMessageType + const InfoMessageType + const SystemErrorType + const TweetErrorType + const WarnMessageType + var ErrParameter = errors.New("twitter input parameter error") + type AddTweetBookmarkResponse struct + RateLimit *RateLimit + Tweet *TweetBookmarkData + type Authorizer interface + Add func(req *http.Request) + type Client struct + Authorizer Authorizer + Client *http.Client + Host string + func (c *Client) AddListMember(ctx context.Context, listID, userID string) (*ListAddMemberResponse, error) + func (c *Client) AddTweetBookmark(ctx context.Context, userID, tweetID string) (*AddTweetBookmarkResponse, error) + func (c *Client) AuthUserLookup(ctx context.Context, opts UserLookupOpts) (*UserLookupResponse, error) + func (c *Client) ComplianceBatchJob(ctx context.Context, id string) (*ComplianceBatchJobResponse, error) + func (c *Client) ComplianceBatchJobLookup(ctx context.Context, jobType ComplianceBatchJobType, ...) (*ComplianceBatchJobLookupResponse, error) + func (c *Client) CreateComplianceBatchJob(ctx context.Context, jobType ComplianceBatchJobType, ...) (*CreateComplianceBatchJobResponse, error) + func (c *Client) CreateList(ctx context.Context, list ListMetaData) (*ListCreateResponse, error) + func (c *Client) CreateTweet(ctx context.Context, tweet CreateTweetRequest) (*CreateTweetResponse, error) + func (c *Client) DeleteList(ctx context.Context, listID string) (*ListDeleteResponse, error) + func (c *Client) DeleteTweet(ctx context.Context, id string) (*DeleteTweetResponse, error) + func (c *Client) DeleteUserBlocks(ctx context.Context, userID, targetUserID string) (*UserDeleteBlocksResponse, error) + func (c *Client) DeleteUserFollows(ctx context.Context, userID, targetUserID string) (*UserDeleteFollowsResponse, error) + func (c *Client) DeleteUserLikes(ctx context.Context, userID, tweetID string) (*DeleteUserLikesResponse, error) + func (c *Client) DeleteUserMutes(ctx context.Context, userID, targetUserID string) (*UserDeleteMutesResponse, error) + func (c *Client) DeleteUserRetweet(ctx context.Context, userID, tweetID string) (*DeleteUserRetweetResponse, error) + func (c *Client) ListLookup(ctx context.Context, listID string, opts ListLookupOpts) (*ListLookupResponse, error) + func (c *Client) ListTweetLookup(ctx context.Context, listID string, opts ListTweetLookupOpts) (*ListTweetLookupResponse, error) + func (c *Client) ListUserFollowers(ctx context.Context, listID string, opts ListUserFollowersOpts) (*ListUserFollowersResponse, error) + func (c *Client) ListUserMembers(ctx context.Context, listID string, opts ListUserMembersOpts) (*ListUserMembersResponse, error) + func (c *Client) QuoteTweetsLookup(ctx context.Context, tweetID string, opts QuoteTweetsLookupOpts) (*QuoteTweetsLookupResponse, error) + func (c *Client) RemoveListMember(ctx context.Context, listID, userID string) (*ListRemoveMemberResponse, error) + func (c *Client) RemoveTweetBookmark(ctx context.Context, userID, tweetID string) (*RemoveTweetBookmarkResponse, error) + func (c *Client) SpaceBuyersLookup(ctx context.Context, spaceID string, opts SpaceBuyersLookupOpts) (*SpaceBuyersLookupResponse, error) + func (c *Client) SpaceTweetsLookup(ctx context.Context, spaceID string, opts SpaceTweetsLookupOpts) (*SpaceTweetsLookupResponse, error) + func (c *Client) SpacesByCreatorLookup(ctx context.Context, userIDs []string, opts SpacesByCreatorLookupOpts) (*SpacesByCreatorLookupResponse, error) + func (c *Client) SpacesLookup(ctx context.Context, ids []string, opts SpacesLookupOpts) (*SpacesLookupResponse, error) + func (c *Client) SpacesSearch(ctx context.Context, query string, opts SpacesSearchOpts) (*SpacesSearchResponse, error) + func (c *Client) TweetAllCounts(ctx context.Context, query string, opts TweetAllCountsOpts) (*TweetAllCountsResponse, error) + func (c *Client) TweetBookmarksLookup(ctx context.Context, userID string, opts TweetBookmarksLookupOpts) (*TweetBookmarksLookupResponse, error) + func (c *Client) TweetLikesLookup(ctx context.Context, tweetID string, opts TweetLikesLookupOpts) (*TweetLikesLookupResponse, error) + func (c *Client) TweetLookup(ctx context.Context, ids []string, opts TweetLookupOpts) (*TweetLookupResponse, error) + func (c *Client) TweetRecentCounts(ctx context.Context, query string, opts TweetRecentCountsOpts) (*TweetRecentCountsResponse, error) + func (c *Client) TweetRecentSearch(ctx context.Context, query string, opts TweetRecentSearchOpts) (*TweetRecentSearchResponse, error) + func (c *Client) TweetSampleStream(ctx context.Context, opts TweetSampleStreamOpts) (*TweetStream, error) + func (c *Client) TweetSearch(ctx context.Context, query string, opts TweetSearchOpts) (*TweetSearchResponse, error) + func (c *Client) TweetSearchStream(ctx context.Context, opts TweetSearchStreamOpts) (*TweetStream, error) + func (c *Client) TweetSearchStreamAddRule(ctx context.Context, rules []TweetSearchStreamRule, dryRun bool) (*TweetSearchStreamAddRuleResponse, error) + func (c *Client) TweetSearchStreamDeleteRuleByID(ctx context.Context, ruleIDs []TweetSearchStreamRuleID, dryRun bool) (*TweetSearchStreamDeleteRuleResponse, error) + func (c *Client) TweetSearchStreamDeleteRuleByValue(ctx context.Context, ruleValues []string, dryRun bool) (*TweetSearchStreamDeleteRuleResponse, error) + func (c *Client) TweetSearchStreamRules(ctx context.Context, ruleIDs []TweetSearchStreamRuleID) (*TweetSearchStreamRulesResponse, error) + func (c *Client) UpdateList(ctx context.Context, listID string, update ListMetaData) (*ListUpdateResponse, error) + func (c *Client) UserBlocks(ctx context.Context, userID, targetUserID string) (*UserBlocksResponse, error) + func (c *Client) UserBlocksLookup(ctx context.Context, userID string, opts UserBlocksLookupOpts) (*UserBlocksLookupResponse, error) + func (c *Client) UserFollowList(ctx context.Context, userID, listID string) (*UserFollowListResponse, error) + func (c *Client) UserFollowedLists(ctx context.Context, userID string, opts UserFollowedListsOpts) (*UserFollowedListsResponse, error) + func (c *Client) UserFollowersLookup(ctx context.Context, id string, opts UserFollowersLookupOpts) (*UserFollowersLookupResponse, error) + func (c *Client) UserFollowingLookup(ctx context.Context, id string, opts UserFollowingLookupOpts) (*UserFollowingLookupResponse, error) + func (c *Client) UserFollows(ctx context.Context, userID, targetUserID string) (*UserFollowsResponse, error) + func (c *Client) UserLikes(ctx context.Context, userID, tweetID string) (*UserLikesResponse, error) + func (c *Client) UserLikesLookup(ctx context.Context, userID string, opts UserLikesLookupOpts) (*UserLikesLookupResponse, error) + func (c *Client) UserListLookup(ctx context.Context, userID string, opts UserListLookupOpts) (*UserListLookupResponse, error) + func (c *Client) UserListMemberships(ctx context.Context, userID string, opts UserListMembershipsOpts) (*UserListMembershipsResponse, error) + func (c *Client) UserLookup(ctx context.Context, ids []string, opts UserLookupOpts) (*UserLookupResponse, error) + func (c *Client) UserMentionTimeline(ctx context.Context, userID string, opts UserMentionTimelineOpts) (*UserMentionTimelineResponse, error) + func (c *Client) UserMutes(ctx context.Context, userID, targetUserID string) (*UserMutesResponse, error) + func (c *Client) UserMutesLookup(ctx context.Context, userID string, opts UserMutesLookupOpts) (*UserMutesLookupResponse, error) + func (c *Client) UserNameLookup(ctx context.Context, usernames []string, opts UserLookupOpts) (*UserLookupResponse, error) + func (c *Client) UserPinList(ctx context.Context, userID, listID string) (*UserPinListResponse, error) + func (c *Client) UserPinnedLists(ctx context.Context, userID string, opts UserPinnedListsOpts) (*UserPinnedListsResponse, error) + func (c *Client) UserRetweet(ctx context.Context, userID, tweetID string) (*UserRetweetResponse, error) + func (c *Client) UserRetweetLookup(ctx context.Context, tweetID string, opts UserRetweetLookupOpts) (*UserRetweetLookupResponse, error) + func (c *Client) UserTweetReverseChronologicalTimeline(ctx context.Context, userID string, ...) (*UserTweetReverseChronologicalTimelineResponse, error) + func (c *Client) UserTweetTimeline(ctx context.Context, userID string, opts UserTweetTimelineOpts) (*UserTweetTimelineResponse, error) + func (c *Client) UserUnfollowList(ctx context.Context, userID, listID string) (*UserUnfollowListResponse, error) + func (c *Client) UserUnpinList(ctx context.Context, userID, listID string) (*UserUnpinListResponse, error) + func (c Client) TweetHideReplies(ctx context.Context, id string, hide bool) (*TweetHideReplyResponse, error) + type ComplianceBatchJobDownloadResponse struct + RateLimit *RateLimit + Results []*ComplianceBatchJobResult + type ComplianceBatchJobLookupOpts struct + Status ComplianceBatchJobStatus + type ComplianceBatchJobLookupResponse struct + RateLimit *RateLimit + Raw *ComplianceBatchJobsRaw + type ComplianceBatchJobObj struct + CreatedAt string + DownloadExpiresAt string + DownloadURL string + Error string + ID string + Name string + Resumable bool + Status ComplianceBatchJobStatus + Type ComplianceBatchJobType + UploadExpiresAt string + UploadURL string + func (c ComplianceBatchJobObj) Download(ctx context.Context) (*ComplianceBatchJobDownloadResponse, error) + func (c ComplianceBatchJobObj) Upload(ctx context.Context, ids io.Reader) error + type ComplianceBatchJobRaw struct + Job *ComplianceBatchJobObj + type ComplianceBatchJobResponse struct + RateLimit *RateLimit + Raw *ComplianceBatchJobRaw + type ComplianceBatchJobResult struct + Action string + CreatedAt string + ID string + Reason string + RedactedAt string + type ComplianceBatchJobStatus string + const ComplianceBatchJobStatusComplete + const ComplianceBatchJobStatusCreated + const ComplianceBatchJobStatusExpired + const ComplianceBatchJobStatusFailed + const ComplianceBatchJobStatusInProgress + type ComplianceBatchJobType string + const ComplianceBatchJobTypeTweets + const ComplianceBatchJobTypeUsers + type ComplianceBatchJobsRaw struct + Jobs []*ComplianceBatchJobObj + type CreateComplianceBatchJobOpts struct + Name string + Resumable bool + type CreateComplianceBatchJobResponse struct + RateLimit *RateLimit + Raw *ComplianceBatchJobRaw + type CreateTweetData struct + ID string + Text string + type CreateTweetGeo struct + PlaceID string + type CreateTweetMedia struct + IDs []string + TaggedUserIDs []string + type CreateTweetPoll struct + DurationMinutes int + Options []string + type CreateTweetReply struct + ExcludeReplyUserIDs []string + InReplyToTweetID string + type CreateTweetRequest struct + DirectMessageDeepLink string + ForSuperFollowersOnly bool + Geo *CreateTweetGeo + Media *CreateTweetMedia + Poll *CreateTweetPoll + QuoteTweetID string + Reply *CreateTweetReply + ReplySettings string + Text string + type CreateTweetResponse struct + RateLimit *RateLimit + Tweet *CreateTweetData + type DeleteTweetData struct + Deleted bool + type DeleteTweetResponse struct + RateLimit *RateLimit + Tweet *DeleteTweetData + type DeleteUserLikesResponse struct + Data *UserLikesData + RateLimit *RateLimit + type DeleteUserRetweetResponse struct + Data *RetweetData + RateLimit *RateLimit + type EntitiesObj struct + Annotations []EntityAnnotationObj + CashTags []EntityTagObj + HashTags []EntityTagObj + Mentions []EntityMentionObj + URLs []EntityURLObj + type EntityAnnotationObj struct + NormalizedText string + Probability float64 + Type string + type EntityMentionObj struct + UserName string + type EntityObj struct + End int + Start int + type EntityTagObj struct + Tag string + type EntityURLObj struct + Description string + DisplayURL string + ExpandedURL string + MediaKey string + Status int + Title string + URL string + UnwoundURL string + type Epoch int + func (e Epoch) Time() time.Time + type Error struct + Message string + Parameters interface{} + type ErrorObj struct + Detail string + Parameter string + ResourceType string + Title string + Type string + Value interface{} + type ErrorResponse struct + Detail string + Errors []Error + RateLimit *RateLimit + StatusCode int + Title string + Type string + func (e ErrorResponse) Error() string + type Exclude string + const ExcludeReplies + const ExcludeRetweets + type Expansion string + const ExpansionAttachmentsMediaKeys + const ExpansionAttachmentsPollIDs + const ExpansionAuthorID + const ExpansionCreatorID + const ExpansionEntitiesMentionsUserName + const ExpansionGeoPlaceID + const ExpansionHostIDs + const ExpansionInReplyToUserID + const ExpansionInvitedUserIDs + const ExpansionOwnerID + const ExpansionPinnedTweetID + const ExpansionReferencedTweetsID + const ExpansionReferencedTweetsIDAuthorID + const ExpansionSpeakerIDS + type Granularity string + const GranularityDay + const GranularityHour + const GranularityMinute + type HTTPError struct + RateLimit *RateLimit + Status string + StatusCode int + URL string + func (h HTTPError) Error() string + type ListAddMemberResponse struct + List *ListMemberData + RateLimit *RateLimit + type ListCreateData struct + ID string + Name string + type ListCreateResponse struct + List *ListCreateData + RateLimit *RateLimit + type ListDeleteData struct + Deleted bool + type ListDeleteResponse struct + List *ListDeleteData + RateLimit *RateLimit + type ListField string + const ListFieldCreatedAt + const ListFieldDescription + const ListFieldFollowerCount + const ListFieldMemberCount + const ListFieldOwnerID + const ListFieldPrivate + type ListLookupOpts struct + Expansions []Expansion + ListFields []ListField + UserFields []UserField + type ListLookupResponse struct + RateLimit *RateLimit + Raw *ListRaw + type ListMemberData struct + Member bool + type ListMetaData struct + Description *string + Name *string + Private *bool + type ListObj struct + CreatedAt string + Description string + FollowerCount int + ID string + MemberCount int + Name string + OwnerID string + Private bool + type ListRaw struct + Errors []*ErrorObj + Includes *ListRawIncludes + List *ListObj + type ListRawIncludes struct + Users []*UserObj + type ListRemoveMemberResponse struct + List *ListMemberData + RateLimit *RateLimit + type ListTweetLookupMeta struct + NextToken string + PreviousToken string + ResultCount int + type ListTweetLookupOpts struct + Expansions []Expansion + MaxResults int + MediaFields []MediaField + PaginationToken string + PlaceFields []PlaceField + PollFields []PollField + TweetFields []TweetField + UserFields []UserField + type ListTweetLookupResponse struct + Meta *ListTweetLookupMeta + RateLimit *RateLimit + Raw *TweetRaw + type ListUpdateData struct + Updated bool + type ListUpdateResponse struct + List *ListUpdateData + RateLimit *RateLimit + type ListUserFollowersMeta struct + NextToken string + PreviousToken string + ResultCount int + type ListUserFollowersOpts struct + Expansions []Expansion + MaxResults int + PaginationToken string + TweetFields []TweetField + UserFields []UserField + type ListUserFollowersResponse struct + Meta *ListUserFollowersMeta + RateLimit *RateLimit + Raw *UserRaw + type ListUserMembersMeta struct + NextToken string + PreviousToken string + ResultCount int + type ListUserMembersOpts struct + Expansions []Expansion + MaxResults int + PaginationToken string + TweetFields []TweetField + UserFields []UserField + type ListUserMembersResponse struct + Meta *ListUserMembersMeta + RateLimit *RateLimit + Raw *UserRaw + type MediaField string + const MediaFieldAltText + const MediaFieldDurationMS + const MediaFieldHeight + const MediaFieldMediaKey + const MediaFieldNonPublicMetrics + const MediaFieldOrganicMetrics + const MediaFieldPreviewImageURL + const MediaFieldPromotedMetrics + const MediaFieldPublicMetrics + const MediaFieldType + const MediaFieldURL + const MediaFieldVariants + const MediaFieldWidth + type MediaMetricsObj struct + Playback0 int + Playback100 int + Playback25 int + Playback50 int + Playback75 int + Views int + type MediaObj struct + AltText string + DurationMS int + Height int + Key string + NonPublicMetrics *MediaMetricsObj + OrganicMetrics *MediaMetricsObj + PreviewImageURL string + PromotedMetrics *MediaMetricsObj + PublicMetrics *MediaMetricsObj + Type string + URL string + Variants []*MediaVariantObj + Width int + type MediaVariantObj struct + BitRate int + ContentType string + URL string + type PlaceField string + const PlaceFieldContainedWithin + const PlaceFieldCountry + const PlaceFieldCountryCode + const PlaceFieldFullName + const PlaceFieldGeo + const PlaceFieldID + const PlaceFieldName + const PlaceFieldPlaceType + type PlaceGeoObj struct + BBox []float64 + Properties map[string]interface{} + Type string + type PlaceObj struct + ContainedWithin []string + Country string + CountryCode string + FullName string + Geo *PlaceGeoObj + ID string + Name string + PlaceType string + type PollField string + const PollFieldDurationMinutes + const PollFieldEndDateTime + const PollFieldID + const PollFieldOptions + const PollFieldVotingStatus + type PollObj struct + DurationMinutes int + EndDateTime string + ID string + Options []*PollOptionObj + VotingStatus string + type PollOptionObj struct + Label string + Position int + Votes int + type QuoteTweetsLookupMeta struct + NextToken string + ResultCount int + type QuoteTweetsLookupOpts struct + Expansions []Expansion + MaxResults int + MediaFields []MediaField + PaginationToken string + PlaceFields []PlaceField + PollFields []PollField + TweetFields []TweetField + UserFields []UserField + type QuoteTweetsLookupResponse struct + Meta *QuoteTweetsLookupMeta + RateLimit *RateLimit + Raw *TweetRaw + type RateLimit struct + Limit int + Remaining int + Reset Epoch + func RateLimitFromError(err error) (*RateLimit, bool) + type RemoveTweetBookmarkResponse struct + RateLimit *RateLimit + Tweet *TweetBookmarkData + type ResponseDecodeError struct + Err error + Name string + RateLimit *RateLimit + func (r *ResponseDecodeError) Error() string + func (r *ResponseDecodeError) Unwrap() error + type RetweetData struct + Retweeted bool + type SpaceBuyersLookupOpts struct + Expansions []Expansion + MediaFields []MediaField + PlaceFields []PlaceField + PollFields []PollField + TweetFields []TweetField + UserFields []UserField + type SpaceBuyersLookupResponse struct + RateLimit *RateLimit + Raw *UserRaw + type SpaceField string + const SpaceFieldCreatedAt + const SpaceFieldCreatorID + const SpaceFieldEndedAt + const SpaceFieldHostIDs + const SpaceFieldID + const SpaceFieldInvitedUserIDs + const SpaceFieldLang + const SpaceFieldParticipantCount + const SpaceFieldScheduledStart + const SpaceFieldSpeakerIDs + const SpaceFieldStartedAt + const SpaceFieldState + const SpaceFieldSubscriberCount + const SpaceFieldTicketed + const SpaceFieldTitle + const SpaceFieldTopicIDs + const SpaceFieldUpdatedAt + type SpaceObj struct + CreatedAt string + CreatorID string + EndedAt string + HostIDs []string + ID string + InvitedUserIDs []string + Lang string + ParticipantCount int + ScheduledStart string + SpeakerIDs []string + StartedAt string + State string + SubscriberCount int + Ticketed bool + Title string + TopicIDs []string + UpdatedAt string + type SpaceState string + const SpaceStateAll + const SpaceStateLive + const SpaceStateScheduled + type SpaceTweetsLookupMeta struct + ResultCount int + type SpaceTweetsLookupOpts struct + Expansions []Expansion + MediaFields []MediaField + PlaceFields []PlaceField + PollFields []PollField + TweetFields []TweetField + UserFields []UserField + type SpaceTweetsLookupResponse struct + Meta *SpaceTweetsLookupMeta + RateLimit *RateLimit + Raw *TweetRaw + type SpacesByCreatorLookupOpts struct + Expansions []Expansion + SpaceFields []SpaceField + TopicFields []TopicField + UserFields []UserField + type SpacesByCreatorLookupResponse struct + Meta *SpacesByCreatorMeta + RateLimit *RateLimit + Raw *SpacesRaw + type SpacesByCreatorMeta struct + ResultCount int + type SpacesLookupOpts struct + Expansions []Expansion + SpaceFields []SpaceField + TopicFields []TopicField + UserFields []UserField + type SpacesLookupResponse struct + RateLimit *RateLimit + Raw *SpacesRaw + type SpacesRaw struct + Errors []*ErrorObj + Includes *SpacesRawIncludes + Spaces []*SpaceObj + type SpacesRawIncludes struct + Topics []*TopicObj + Users []*UserObj + type SpacesSearchMeta struct + ResultCount int + type SpacesSearchOpts struct + Expansions []Expansion + SpaceFields []SpaceField + State SpaceState + TopicFields []TopicField + UserFields []UserField + type SpacesSearchResponse struct + Meta *SpacesSearchMeta + RateLimit *RateLimit + Raw *SpacesRaw + type StreamError struct + Err error + Msg string + Type StreamErrorType + func (e *StreamError) Is(target error) bool + func (e *StreamError) Unwrap() error + func (e StreamError) Error() string + type StreamErrorType string + type SystemMessage struct + Message string + Sent time.Time + type SystemMessageType string + type TopicField string + const TopicFieldDescription + const TopicFieldID + const TopicFieldName + type TopicObj struct + Description string + ID string + Name string + type TweetAllCountsMeta struct + NextToken string + TotalTweetCount int + type TweetAllCountsOpts struct + EndTime time.Time + Granularity Granularity + NextToken string + SinceID string + StartTime time.Time + UntilID string + type TweetAllCountsResponse struct + Meta *TweetAllCountsMeta + RateLimit *RateLimit + TweetCounts []*TweetCount + type TweetAttachmentsObj struct + MediaKeys []string + PollIDs []string + type TweetBookmarkData struct + Bookmarked bool + type TweetBookmarksLookupMeta struct + NextToken string + ResultCount int + type TweetBookmarksLookupOpts struct + Expansions []Expansion + MaxResults int + MediaFields []MediaField + PaginationToken string + PlaceFields []PlaceField + PollFields []PollField + TweetFields []TweetField + UserFields []UserField + type TweetBookmarksLookupResponse struct + Meta *TweetBookmarksLookupMeta + RateLimit *RateLimit + Raw *TweetRaw + type TweetContextAnnotationObj struct + Domain TweetContextObj + Entity TweetContextObj + type TweetContextObj struct + Description string + ID string + Name string + type TweetCount struct + End string + Start string + TweetCount int + type TweetDictionary struct + AttachmentMedia []*MediaObj + AttachmentPolls []*PollObj + Author *UserObj + InReplyUser *UserObj + Mentions []*TweetMention + Place *PlaceObj + ReferencedTweets []*TweetReference + Tweet TweetObj + func CreateTweetDictionary(tweet TweetObj, includes *TweetRawIncludes) *TweetDictionary + type TweetField string + const TweetFieldAttachments + const TweetFieldAuthorID + const TweetFieldContextAnnotations + const TweetFieldConversationID + const TweetFieldCreatedAt + const TweetFieldEntities + const TweetFieldGeo + const TweetFieldID + const TweetFieldInReplyToUserID + const TweetFieldLanguage + const TweetFieldNonPublicMetrics + const TweetFieldOrganicMetrics + const TweetFieldPossiblySensitve + const TweetFieldPromotedMetrics + const TweetFieldPublicMetrics + const TweetFieldReferencedTweets + const TweetFieldSource + const TweetFieldText + const TweetFieldWithHeld + type TweetGeoCoordinatesObj struct + Coordinates []float64 + Type string + type TweetGeoObj struct + Coordinates TweetGeoCoordinatesObj + PlaceID string + type TweetHideReplyData struct + Hidden bool + type TweetHideReplyResponse struct + RateLimit *RateLimit + Reply *TweetHideReplyData + type TweetLikesLookupOpts struct + Expansions []Expansion + MaxResults int + MediaFields []MediaField + PaginationToken string + PlaceFields []PlaceField + PollFields []PollField + TweetFields []TweetField + UserFields []UserField + type TweetLikesLookupResponse struct + Meta *TweetLikesMeta + RateLimit *RateLimit + Raw *UserRaw + type TweetLikesMeta struct + NextToken string + PreviousToken string + ResultCount int + type TweetLookupOpts struct + Expansions []Expansion + MediaFields []MediaField + PlaceFields []PlaceField + PollFields []PollField + TweetFields []TweetField + UserFields []UserField + type TweetLookupResponse struct + RateLimit *RateLimit + Raw *TweetRaw + type TweetMention struct + Mention *EntityMentionObj + User *UserObj + type TweetMessage struct + Raw *TweetRaw + type TweetMetricsObj struct + Impressions int + Likes int + Quotes int + Replies int + Retweets int + URLLinkClicks int + UserProfileClicks int + type TweetObj struct + Attachments *TweetAttachmentsObj + AuthorID string + ContextAnnotations []*TweetContextAnnotationObj + ConversationID string + CreatedAt string + Entities *EntitiesObj + Geo *TweetGeoObj + ID string + InReplyToUserID string + Language string + NonPublicMetrics *TweetMetricsObj + OrganicMetrics *TweetMetricsObj + PossiblySensitive bool + PromotedMetrics *TweetMetricsObj + PublicMetrics *TweetMetricsObj + ReferencedTweets []*TweetReferencedTweetObj + Source string + Text string + WithHeld *WithHeldObj + type TweetRaw struct + Errors []*ErrorObj + Includes *TweetRawIncludes + Tweets []*TweetObj + func (t *TweetRaw) TweetDictionaries() map[string]*TweetDictionary + type TweetRawIncludes struct + Media []*MediaObj + Places []*PlaceObj + Polls []*PollObj + Tweets []*TweetObj + Users []*UserObj + func (t *TweetRawIncludes) MediaByKeys() map[string]*MediaObj + func (t *TweetRawIncludes) PlacesByID() map[string]*PlaceObj + func (t *TweetRawIncludes) PollsByID() map[string]*PollObj + func (t *TweetRawIncludes) TweetsByID() map[string]*TweetObj + func (t *TweetRawIncludes) UsersByID() map[string]*UserObj + func (t *TweetRawIncludes) UsersByUserName() map[string]*UserObj + type TweetRecentCountsMeta struct + TotalTweetCount int + type TweetRecentCountsOpts struct + EndTime time.Time + Granularity Granularity + SinceID string + StartTime time.Time + UntilID string + type TweetRecentCountsResponse struct + Meta *TweetRecentCountsMeta + RateLimit *RateLimit + TweetCounts []*TweetCount + type TweetRecentSearchMeta struct + NewestID string + NextToken string + OldestID string + ResultCount int + type TweetRecentSearchOpts struct + EndTime time.Time + Expansions []Expansion + MaxResults int + MediaFields []MediaField + NextToken string + PlaceFields []PlaceField + PollFields []PollField + SinceID string + SortOrder TweetSearchSortOrder + StartTime time.Time + TweetFields []TweetField + UntilID string + UserFields []UserField + type TweetRecentSearchResponse struct + Meta *TweetRecentSearchMeta + RateLimit *RateLimit + Raw *TweetRaw + type TweetReference struct + Reference *TweetReferencedTweetObj + TweetDictionary *TweetDictionary + type TweetReferencedTweetObj struct + ID string + Type string + type TweetSampleStreamOpts struct + BackfillMinutes int + Expansions []Expansion + MediaFields []MediaField + PlaceFields []PlaceField + PollFields []PollField + TweetFields []TweetField + UserFields []UserField + type TweetSearchMeta struct + NewestID string + NextToken string + OldestID string + ResultCount int + type TweetSearchOpts struct + EndTime time.Time + Expansions []Expansion + MaxResults int + MediaFields []MediaField + NextToken string + PlaceFields []PlaceField + PollFields []PollField + SinceID string + SortOrder TweetSearchSortOrder + StartTime time.Time + TweetFields []TweetField + UntilID string + UserFields []UserField + type TweetSearchResponse struct + Meta *TweetSearchMeta + RateLimit *RateLimit + Raw *TweetRaw + type TweetSearchSortOrder string + const TweetSearchSortOrderRecency + const TweetSearchSortOrderRelevancy + type TweetSearchStreamAddRuleResponse struct + Errors []*ErrorObj + Meta *TweetSearchStreamRuleMeta + RateLimit *RateLimit + Rules []*TweetSearchStreamRuleEntity + type TweetSearchStreamDeleteRuleResponse struct + Errors []*ErrorObj + Meta *TweetSearchStreamRuleMeta + RateLimit *RateLimit + type TweetSearchStreamOpts struct + BackfillMinutes int + Expansions []Expansion + MediaFields []MediaField + PlaceFields []PlaceField + PollFields []PollField + TweetFields []TweetField + UserFields []UserField + type TweetSearchStreamRule struct + Tag string + Value string + type TweetSearchStreamRuleEntity struct + ID TweetSearchStreamRuleID + type TweetSearchStreamRuleID string + type TweetSearchStreamRuleMeta struct + Sent time.Time + Summary TweetSearchStreamRuleSummary + type TweetSearchStreamRuleSummary struct + Created int + Deleted int + NotCreated int + NotDeleted int + type TweetSearchStreamRulesResponse struct + Errors []*ErrorObj + Meta *TweetSearchStreamRuleMeta + RateLimit *RateLimit + Rules []*TweetSearchStreamRuleEntity + type TweetStream struct + RateLimit *RateLimit + func StartTweetStream(stream io.ReadCloser) *TweetStream + func (ts *TweetStream) Close() + func (ts *TweetStream) Connection() bool + func (ts *TweetStream) Err() <-chan error + func (ts *TweetStream) SystemMessages() <-chan map[SystemMessageType]SystemMessage + func (ts *TweetStream) Tweets() <-chan *TweetMessage + type U struct + URLs []EntityURLObj + type UserBlocksData struct + Blocking bool + type UserBlocksLookupMeta struct + NextToken string + PreviousToken string + ResultCount int + type UserBlocksLookupOpts struct + Expansions []Expansion + MaxResults int + PaginationToken string + TweetFields []TweetField + UserFields []UserField + type UserBlocksLookupResponse struct + Meta *UserBlocksLookupMeta + RateLimit *RateLimit + Raw *UserRaw + type UserBlocksResponse struct + Data *UserBlocksData + RateLimit *RateLimit + type UserDeleteBlocksResponse struct + Data *UserBlocksData + RateLimit *RateLimit + type UserDeleteFollowsData struct + Following bool + type UserDeleteFollowsResponse struct + Data *UserDeleteFollowsData + RateLimit *RateLimit + type UserDeleteMutesResponse struct + Data *UserMutesData + RateLimit *RateLimit + type UserDictionary struct + PinnedTweet *TweetObj + User UserObj + func CreateUserDictionary(user UserObj, includes *UserRawIncludes) *UserDictionary + type UserEntitiesObj struct + Annotations []EntityAnnotationObj + CashTags []EntityTagObj + HashTags []EntityTagObj + Mentions []EntityMentionObj + URL *U + type UserField string + const UserFieldCreatedAt + const UserFieldDescription + const UserFieldEntities + const UserFieldID + const UserFieldLocation + const UserFieldName + const UserFieldPinnedTweetID + const UserFieldProfileImageURL + const UserFieldProtected + const UserFieldPublicMetrics + const UserFieldURL + const UserFieldUserName + const UserFieldVerified + const UserFieldWithHeld + type UserFollowListData struct + Following bool + type UserFollowListResponse struct + List *UserFollowListData + RateLimit *RateLimit + type UserFollowedListsMeta struct + NextToken string + PreviousToken string + ResultCount int + type UserFollowedListsOpts struct + Expansions []Expansion + ListFields []ListField + MaxResults int + PaginationToken string + UserFields []UserField + type UserFollowedListsRaw struct + Errors []*ErrorObj + Includes *ListRawIncludes + Lists []*ListObj + type UserFollowedListsResponse struct + Meta *UserFollowedListsMeta + RateLimit *RateLimit + Raw *UserFollowedListsRaw + type UserFollowersLookupOpts struct + Expansions []Expansion + MaxResults int + PaginationToken string + TweetFields []TweetField + UserFields []UserField + type UserFollowersLookupResponse struct + Meta *UserFollowershMeta + RateLimit *RateLimit + Raw *UserRaw + type UserFollowershMeta struct + NextToken string + PreviousToken string + ResultCount int + type UserFollowingLookupOpts struct + Expansions []Expansion + MaxResults int + PaginationToken string + TweetFields []TweetField + UserFields []UserField + type UserFollowingLookupResponse struct + Meta *UserFollowingMeta + RateLimit *RateLimit + Raw *UserRaw + type UserFollowingMeta struct + NextToken string + PreviousToken string + ResultCount int + type UserFollowsData struct + Following bool + PendingFollow bool + type UserFollowsResponse struct + Data *UserFollowsData + RateLimit *RateLimit + type UserLikesData struct + Liked bool + type UserLikesLookupOpts struct + Expansions []Expansion + MaxResults int + MediaFields []MediaField + PaginationToken string + PlaceFields []PlaceField + PollFields []PollField + TweetFields []TweetField + UserFields []UserField + type UserLikesLookupResponse struct + Meta *UserLikesMeta + RateLimit *RateLimit + Raw *TweetRaw + type UserLikesMeta struct + NextToken string + PreviousToken string + ResultCount int + type UserLikesResponse struct + Data *UserLikesData + RateLimit *RateLimit + type UserListLookupMeta struct + NextToken string + PreviousToken string + ResultCount int + type UserListLookupOpts struct + Expansions []Expansion + ListFields []ListField + MaxResults int + PaginationToken string + UserFields []UserField + type UserListLookupResponse struct + Meta *UserListLookupMeta + RateLimit *RateLimit + Raw *UserListRaw + type UserListMembershipsMeta struct + NextToken string + PreviousToken string + ResultCount int + type UserListMembershipsOpts struct + Expansions []Expansion + ListFields []ListField + MaxResults int + PaginationToken string + UserFields []UserField + type UserListMembershipsRaw struct + Errors []*ErrorObj + Includes *ListRawIncludes + Lists []*ListObj + type UserListMembershipsResponse struct + Meta *UserListMembershipsMeta + RateLimit *RateLimit + Raw *UserListMembershipsRaw + type UserListRaw struct + Errors []*ErrorObj + Includes *ListRawIncludes + Lists []*ListObj + type UserLookupOpts struct + Expansions []Expansion + TweetFields []TweetField + UserFields []UserField + type UserLookupResponse struct + RateLimit *RateLimit + Raw *UserRaw + type UserMentionTimelineOpts struct + EndTime time.Time + Expansions []Expansion + MaxResults int + MediaFields []MediaField + PaginationToken string + PlaceFields []PlaceField + PollFields []PollField + SinceID string + StartTime time.Time + TweetFields []TweetField + UntilID string + UserFields []UserField + type UserMentionTimelineResponse struct + Meta *UserTimelineMeta + RateLimit *RateLimit + Raw *TweetRaw + type UserMetricsObj struct + Followers int + Following int + Listed int + Tweets int + type UserMutesData struct + Muting bool + type UserMutesLookupMeta struct + NextToken string + PreviousToken string + ResultCount int + type UserMutesLookupOpts struct + Expansions []Expansion + MaxResults int + PaginationToken string + TweetFields []TweetField + UserFields []UserField + type UserMutesLookupResponse struct + Meta *UserMutesLookupMeta + RateLimit *RateLimit + Raw *UserRaw + type UserMutesResponse struct + Data *UserMutesData + RateLimit *RateLimit + type UserObj struct + CreatedAt string + Description string + Entities *UserEntitiesObj + ID string + Location string + Name string + PinnedTweetID string + ProfileImageURL string + Protected bool + PublicMetrics *UserMetricsObj + URL string + UserName string + Verified bool + WithHeld *WithHeldObj + type UserPinListData struct + Pinned bool + type UserPinListResponse struct + List *UserPinListData + RateLimit *RateLimit + type UserPinnedListsMeta struct + ResultCount int + type UserPinnedListsOpts struct + Expansions []Expansion + ListFields []ListField + UserFields []UserField + type UserPinnedListsRaw struct + Errors []*ErrorObj + Includes *ListRawIncludes + Lists []*ListObj + type UserPinnedListsResponse struct + Meta *UserPinnedListsMeta + RateLimit *RateLimit + Raw *UserPinnedListsRaw + type UserRaw struct + Errors []*ErrorObj + Includes *UserRawIncludes + Users []*UserObj + func (u *UserRaw) UserDictionaries() map[string]*UserDictionary + type UserRawIncludes struct + Tweets []*TweetObj + func (u *UserRawIncludes) TweetsByID() map[string]*TweetObj + type UserRetweetLookupOpts struct + Expansions []Expansion + MaxResults int + MediaFields []MediaField + PaginationToken string + PlaceFields []PlaceField + PollFields []PollField + TweetFields []TweetField + UserFields []UserField + type UserRetweetLookupResponse struct + Meta *UserRetweetMeta + RateLimit *RateLimit + Raw *UserRetweetRaw + type UserRetweetMeta struct + NextToken string + PreviousToken string + ResultCount int + type UserRetweetRaw struct + Errors []*ErrorObj + Includes *UserRetweetRawIncludes + Users []*UserObj + type UserRetweetRawIncludes struct + Tweets []*TweetObj + type UserRetweetResponse struct + Data *RetweetData + RateLimit *RateLimit + type UserReverseChronologicalTimelineMeta struct + NewestID string + NextToken string + OldestID string + PreviousToken string + ResultCount int + type UserTimelineMeta struct + NewestID string + NextToken string + OldestID string + PreviousToken string + ResultCount int + type UserTweetReverseChronologicalTimelineOpts struct + EndTime time.Time + Excludes []Exclude + Expansions []Expansion + MaxResults int + MediaFields []MediaField + PaginationToken string + PlaceFields []PlaceField + PollFields []PollField + SinceID string + StartTime time.Time + TweetFields []TweetField + UntilID string + UserFields []UserField + type UserTweetReverseChronologicalTimelineResponse struct + Meta *UserReverseChronologicalTimelineMeta + RateLimit *RateLimit + Raw *TweetRaw + type UserTweetTimelineOpts struct + EndTime time.Time + Excludes []Exclude + Expansions []Expansion + MaxResults int + MediaFields []MediaField + PaginationToken string + PlaceFields []PlaceField + PollFields []PollField + SinceID string + StartTime time.Time + TweetFields []TweetField + UntilID string + UserFields []UserField + type UserTweetTimelineResponse struct + Meta *UserTimelineMeta + RateLimit *RateLimit + Raw *TweetRaw + type UserUnfollowListResponse struct + List *UserFollowListData + RateLimit *RateLimit + type UserUnpinListResponse struct + List *UserPinListData + RateLimit *RateLimit + type WithHeldObj struct + Copyright bool + CountryCodes []string