Versions in this module Expand all Collapse all v1 v1.2.2-alpha Jul 21, 2022 v1.2.1-alpha Jun 18, 2022 v1.2.0-alpha Jun 12, 2022 v1.1.0-alpha Jun 2, 2022 v1.0.5-alpha May 31, 2022 v1.0.4-alpha May 31, 2022 v1.0.3-alpha May 31, 2022 v1.0.2-alpha May 30, 2022 v1.0.1-alpha May 30, 2022 v1.0.0-alpha May 29, 2022 v0 v0.3.1-alpha May 29, 2022 v0.3.0-alpha May 28, 2022 v0.0.0 Jun 12, 2022 Changes in this version + const AllTweetsPath + const AllTweetsRatelimiter + const BookmarksPath + const BookmarksRatelimiter + const ComplianceJobsPath + const ComplianceJobsRatelimiter + const CreateBookmarkPath + const CreateBookmarkRatelimiter + const DeleteBookmarkPath + const DeleteBookmarkRatelimiter + const MePath + const MeRatelimiter + const TweetsPath + const TweetsRatelimiter + const TwitterISO8601 + type AllTweetsOptions struct + MaxResults *int + func (opts *AllTweetsOptions) EncodeBody() (buf io.Reader, err error) + func (opts *AllTweetsOptions) EncodeQuery(req *http.Request) + func (opts *AllTweetsOptions) SetMaxResults(MaxResults int) *AllTweetsOptions + type Annotation struct + End int + NormalizedText string + Probability float64 + Start int + Type string + type Attachments struct + MediaKeys []string + PollIds []string + type Bookmark struct + Attachments *Attachments + AuthorID string + Bookmarked bool + ContextAnnotations []*ContextAnnotation + ConversationID string + CreatedAt time.Time + Entities *Entities + Errors map[string]interface{} + Geo *Geo + ID string + InReplyToUserID string + Includes map[string]interface{} + Lang string + NonPublicMetrics *NonPublicMetrics + OrganicMetrics *OrganicMetrics + PossiblySensitive bool + PromotedMetrics *PromotedMetrics + PublicMetrics *PublicMetrics + ReferencedTweets []*ReferencedTweet + ReplySettings string + Source string + Text string + Withheld *Withheld + type BookmarkWrite struct + Data Bookmarked + Meta Meta + type Bookmarked struct + Bookmarked bool + type Bookmarks struct + Data []*Bookmark + Meta Meta + type BookmarksOptions struct + Expansions *Expansions + MaxResults *uint8 + MediaFields *MediaFields + PaginationToken *string + PlaceFields *PlaceFields + PollFields *PollFields + TweetFields *TweetFields + UserFields *UserFields + func (opts *BookmarksOptions) EncodeBody() (buf io.Reader, err error) + func (opts *BookmarksOptions) EncodeQuery(req *http.Request) + func (opts *BookmarksOptions) SetExpansions(Expansions Expansions) *BookmarksOptions + func (opts *BookmarksOptions) SetMaxResults(MaxResults uint8) *BookmarksOptions + func (opts *BookmarksOptions) SetMediaFields(MediaFields MediaFields) *BookmarksOptions + func (opts *BookmarksOptions) SetPaginationToken(PaginationToken string) *BookmarksOptions + func (opts *BookmarksOptions) SetPlaceFields(PlaceFields PlaceFields) *BookmarksOptions + func (opts *BookmarksOptions) SetPollFields(PollFields PollFields) *BookmarksOptions + func (opts *BookmarksOptions) SetTweetFields(TweetFields TweetFields) *BookmarksOptions + func (opts *BookmarksOptions) SetUserFields(UserFields UserFields) *BookmarksOptions + type Cashtag struct + End int + Start int + Tag string + type Client struct + func NewClient(_ context.Context, transport transport.T) (*Client, error) + func (c *Client) AllTweets(opts *AllTweetsOptions) (m *Tweets, _ error) + func (c *Client) Bookmarks(userId string, opts *BookmarksOptions) (m *Bookmarks, _ error) + func (c *Client) ComplianceJobs(opts *ComplianceJobsOptions) (m []*Compliance, _ error) + func (c *Client) CreateBookmark(userId string, opts *CreateBookmarkOptions) (m BookmarkWrite, _ error) + func (c *Client) DeleteBookmark(userId string, tweetId string) (m BookmarkWrite, _ error) + func (c *Client) Me() (m []*User, _ error) + func (c *Client) Tweets(opts *TweetsOptions) (m *Tweets, _ error) + type Compliance struct + CreatedAt time.Time + DownloadExpiresAt time.Time + DownloadURL string + Error string + ID string + Meta Meta + Name string + Status Status + Type ComplianceJob + UploadExpiresAt time.Time + UploadURL string + type ComplianceJob string + const ComplianceJobTweets + const ComplianceJobUsers + func (ComplianceJob *ComplianceJob) String() string + type ComplianceJobsOptions struct + Status *Status + Type ComplianceJob + func (opts *ComplianceJobsOptions) EncodeBody() (buf io.Reader, err error) + func (opts *ComplianceJobsOptions) EncodeQuery(req *http.Request) + func (opts *ComplianceJobsOptions) SetStatus(Status Status) *ComplianceJobsOptions + func (opts *ComplianceJobsOptions) SetType(Type ComplianceJob) *ComplianceJobsOptions + type ContextAnnotation struct + Domain Domain + Entity Entity + type Coordinates struct + Coordinates []float64 + Type string + type CreateBookmarkOptions struct + TweetID *string + func (opts *CreateBookmarkOptions) EncodeBody() (buf io.Reader, err error) + func (opts *CreateBookmarkOptions) EncodeQuery(req *http.Request) + func (opts *CreateBookmarkOptions) SetTweetID(TweetID string) *CreateBookmarkOptions + type Domain struct + Description string + ID string + Name string + type Entities struct + Annotations []*Annotation + Cashtags []*Cashtag + Hashtags []*Hashtag + Mentions []*Mention + Urls []*URL + type Entity struct + Description string + ID string + Name string + type Expansion string + const ExpansionAttachmentsMediaKeys + const ExpansionAttachmentsPollIds + const ExpansionAuthorID + const ExpansionEntitiesMentionsUsername + const ExpansionGeoPlaceID + const ExpansionInReplyToUserID + const ExpansionReferencedTweetsID + const ExpansionReferencedTweetsIDAuthorID + func (Expansion *Expansion) String() string + type Expansions []Expansion + func (Expansions *Expansions) String() string + type Geo struct + Coordinates *Coordinates + PlaceID string + type Hashtag struct + End int + Start int + Tag string + 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 MediaFieldWidth + func (MediaField *MediaField) String() string + type MediaFields []MediaField + func (MediaFields *MediaFields) String() string + type Mention struct + End int + Start int + Username string + type Meta struct + ResultCount int + type NonPublicMetrics struct + ImpressionCount int + URLLinkClicks int + UserProfileClicks int + type OrganicMetrics struct + ImpressionCount int + LikeCount int + ReplyCount int + RetweetCount int + URLLinkClicks int + UserProfileClicks int + type PlaceField string + const PlaceFieldContainedWithin + const PlaceFieldCountry + const PlaceFieldCountryCode + const PlaceFieldFullName + const PlaceFieldGeo + const PlaceFieldID + const PlaceFieldName + const PlaceFieldPlaceType + func (PlaceField *PlaceField) String() string + type PlaceFields []PlaceField + func (PlaceFields *PlaceFields) String() string + type PollField string + const PollFieldDurationMinutes + const PollFieldEndDatetime + const PollFieldID + const PollFieldOptions + const PollFieldVotingStatus + func (PollField *PollField) String() string + type PollFields []PollField + func (PollFields *PollFields) String() string + type PromotedMetrics struct + ImpressionCount int + LikeCount int + ReplyCount int + RetweetCount int + URLLinkClicks int + UserProfileClicks int + type PublicMetrics struct + LikeCount int + QuoteCount int + ReplyCount int + RetweetCount int + type ReferencedTweet struct + ID string + Type string + type ReferencedTweetType string + const ReferencedTweetTypeQuoted + const ReferencedTweetTypeRepliedTo + const ReferencedTweetTypeRetweeted + func (ReferencedTweetType *ReferencedTweetType) String() string + type ReferencedTweetTypes []ReferencedTweetType + func (ReferencedTweetTypes *ReferencedTweetTypes) String() string + type Status string + const StatusComplete + const StatusCreated + const StatusCreating + const StatusDelisted + const StatusFailed + const StatusInProgress + const StatusInternal + const StatusOffline + const StatusOnline + const StatusPending + const StatusReady + func (Status *Status) String() string + type Tweet struct + CreatedAt time.Time + ID string + Text string + type TweetField string + const TweetFieldAttachments + const TweetFieldAuthorID + const TweetFieldContextAnnotations + const TweetFieldConversationID + const TweetFieldCreatedAt + const TweetFieldEntities + const TweetFieldGeo + const TweetFieldID + const TweetFieldInReplyToUserID + const TweetFieldLang + const TweetFieldNonPublicMetrics + const TweetFieldOrganicMetrics + const TweetFieldPossiblySensitive + const TweetFieldPromotedMetrics + const TweetFieldPublicMetrics + const TweetFieldReferencedTweets + const TweetFieldReplySettings + const TweetFieldSource + const TweetFieldText + const TweetFieldWithheld + func (TweetField *TweetField) String() string + type TweetFields []TweetField + func (TweetFields *TweetFields) String() string + type Tweets struct + Data []*Tweet + Meta Meta + type TweetsOptions struct + Ids []string + func (opts *TweetsOptions) EncodeBody() (buf io.Reader, err error) + func (opts *TweetsOptions) EncodeQuery(req *http.Request) + func (opts *TweetsOptions) SetIds(Ids []string) *TweetsOptions + type URL struct + DisplayURL string + End int + ExpandedURL string + Start int + URL string + UnwoundURL string + type User struct + ID string + 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 + func (UserField *UserField) String() string + type UserFields []UserField + func (UserFields *UserFields) String() string + type Withheld struct + Copyright bool + CountryCodes []string + Scope WithholdingScope + type WithholdingScope string + const WithholdingScopeTweet + const WithholdingScopeUser + func (WithholdingScope *WithholdingScope) String() string + type WithholdingScopes []WithholdingScope + func (WithholdingScopes *WithholdingScopes) String() string