Versions in this module Expand all Collapse all v1 v1.1.4 Feb 7, 2021 Changes in this version + type Authorizer interface + Add func(*http.Request) + 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 + Desription string + DisplayURL string + ExpandedURL string + Status int + Title string + URL string + UnwoundURL string + type ErrorObj struct + Detail string + Parameter string + ResourceType string + Title string + Type string + Value string + type Exclude string + const ExcludeReplies + const ExcludeRetweets + type Expansion string + const ExpansionAttachmentsMediaKeys + const ExpansionAttachmentsPollIDs + const ExpansionAuthorID + const ExpansionEntitiesMentionsUserName + const ExpansionGeoPlaceID + const ExpansionInReplyToUserID + const ExpansionPinnedTweetID + const ExpansionReferencedTweetsID + const ExpansionReferencedTweetsIDAuthorID + type HTTPError struct + Status string + StatusCode int + URL string + func (h *HTTPError) Error() string + type MediaField string + const MediaFieldDurationMS + const MediaFieldHeight + const MediaFieldMediaKey + const MediaFieldNonPublicMetrics + const MediaFieldOrganicMetrics + const MediaFieldPreviewImageURL + const MediaFieldPromotedMetrics + const MediaFieldPublicMetrics + const MediaFieldType + const MediaFieldURL + const MediaFieldWidth + type MediaMetricsObj struct + Playback0 int + Playback100 int + Playback25 int + Playback50 int + Playback75 int + Views int + type MediaObj struct + DurationMS int + Height int + Key string + NonPublicMetrics MediaMetricsObj + OrganicMetrics MediaMetricsObj + PreviewImageURL string + PromotedMetrics MediaMetricsObj + PublicMetrics MediaMetricsObj + Type string + URL string + Width int + 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 Tweet struct + Authorizer Authorizer + Client *http.Client + Host string + func (t *Tweet) ApplyFilteredStreamRules(ctx context.Context, rules TweetSearchStreamRule, validate bool) (*TweetSearchStreamRules, error) + func (t *Tweet) FilteredStream(ctx context.Context, options TweetFieldOptions) (TweetLookups, error) + func (t *Tweet) FilteredStreamRules(ctx context.Context, ids []string) (*TweetSearchStreamRules, error) + func (t *Tweet) HideReplies(ctx context.Context, id string, hidden bool) error + func (t *Tweet) Lookup(ctx context.Context, ids []string, options TweetFieldOptions) (TweetLookups, error) + func (t *Tweet) RecentSearch(ctx context.Context, query string, searchOpts TweetRecentSearchOptions, ...) (*TweetRecentSearch, error) + func (t *Tweet) SampledStream(ctx context.Context, options TweetFieldOptions) (TweetLookups, error) + type TweetAttachmentsObj struct + MediaKeys []string + PollIDs []string + type TweetContextAnnotationObj struct + Domain TweetContextObj + Entity TweetContextObj + type TweetContextObj struct + Description string + ID string + Name string + type TweetError struct + Message string + Parameters interface{} + type TweetErrorResponse struct + Detail string + Errors []TweetError + StatusCode int + Title string + Type string + func (t *TweetErrorResponse) Error() string + 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 TweetFieldOptions struct + Expansions []Expansion + MediaFields []MediaField + PlaceFields []PlaceField + PollFields []PollField + TweetFields []TweetField + UserFields []UserField + type TweetGeoCoordinatesObj struct + Coordinates []float64 + Type string + type TweetGeoObj struct + Coordinates TweetGeoCoordinatesObj + PlaceID string + type TweetLookup struct + AttachmentMedia []*MediaObj + AttachmentPolls []*PollObj + InReplyUser *UserObj + Media *MediaObj + Mentions []*UserObj + Place *PlaceObj + Poll *PollObj + ReferencedTweets []TweetLookup + Tweet TweetObj + User *UserObj + type TweetLookups map[string]TweetLookup + 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 + PossibySensitive bool + PromotedMetrics TweetMetricsObj + PublicMetrics TweetMetricsObj + ReferencedTweets []TweetReferencedTweetObj + Source string + Text string + WithHeld WithHeldObj + type TweetRecentSearch struct + LookUps TweetLookups + Meta TweetRecentSearchMeta + func (t *TweetRecentSearch) UnmarshalJSON(b []byte) error + type TweetRecentSearchMeta struct + NewestID string + NextToken string + OldestID string + ResultCount int + type TweetRecentSearchOptions struct + EndTime time.Time + MaxResult int + NextToken string + SinceID string + StartTime time.Time + UntilID string + type TweetReferencedTweetObj struct + ID string + Type string + type TweetSearchStreamAddRule struct + Tag string + Value string + type TweetSearchStreamDeleteRule struct + IDs []string + type TweetSearchStreamRule struct + Add []*TweetSearchStreamAddRule + Delete *TweetSearchStreamDeleteRule + type TweetSearchStreamRuleData struct + ID string + Tag string + Value string + type TweetSearchStreamRuleMeta struct + Sent string + Summary TweetSearchStreamRuleSummary + type TweetSearchStreamRuleSummary struct + Created int + Deleted int + NotCreated int + NotDeleted int + type TweetSearchStreamRules struct + Data []TweetSearchStreamRuleData + Meta TweetSearchStreamRuleMeta + type User struct + Authorizer Authorizer + Client *http.Client + Host string + func (u *User) Lookup(ctx context.Context, ids []string, fieldOpts UserFieldOptions) (UserLookups, error) + func (u *User) LookupFollowers(ctx context.Context, id string, followOpts UserFollowOptions) (*UserFollowLookup, error) + func (u *User) LookupFollowing(ctx context.Context, id string, followOpts UserFollowOptions) (*UserFollowLookup, error) + func (u *User) LookupUsername(ctx context.Context, usernames []string, fieldOpts UserFieldOptions) (UserLookups, error) + func (u *User) Mentions(ctx context.Context, id string, tweetOpts UserTimelineOpts) (*UserTimeline, error) + func (u *User) Tweets(ctx context.Context, id string, tweetOpts UserTimelineOpts) (*UserTimeline, error) + 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 UserFieldOptions struct + Expansions []Expansion + TweetFields []TweetField + UserFields []UserField + type UserFollowLookup struct + Errors []ErrorObj + Lookups UserLookups + Meta *UserFollowMeta + type UserFollowMeta struct + NextToken string + PreviousToken string + ResultCount int + type UserFollowOptions struct + Expansions []Expansion + MaxResults int + PaginationToken string + TweetFields []TweetField + UserFields []UserField + type UserLookup struct + Tweet *TweetObj + User UserObj + type UserLookups map[string]UserLookup + type UserMetricsObj struct + Followers int + Following int + Listed int + Tweets int + type UserObj struct + CreatedAt string + Description string + Entities EntitiesObj + ID string + Location string + Name string + PinnedTweetID string + ProfileImageURL string + Protected bool + PublicMetrics UserMetricsObj + URL string + UserName string + Verified bool + WithHeld WithHeldObj + type UserTimeline struct + Errors []ErrorObj + Includes *UserTimelineIncludes + Meta UserTimelineMeta + Tweets []TweetObj + type UserTimelineIncludes struct + Medias []MediaObj + Places []PlaceObj + Polls string + Tweets []TweetObj + Users []UserObj + type UserTimelineMeta struct + NewestID string + NextToken string + OldestID string + PreviousToken string + ResultCount int + type UserTimelineOpts 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 WithHeldObj struct + Copyright bool + CountryCodes []string