tweet

package
v0.0.0-...-9c64050 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	ID                string             `json:"id"`
	ReferencedTweets  []ReferencedTweets `json:"referenced_tweets,omitempty"`
	Entities          common.Entities    `json:"entities,omitempty"`
	CreatedAt         time.Time          `json:"created_at"`
	PossiblySensitive bool               `json:"possibly_sensitive"`
	Text              string             `json:"text"`
	Source            string             `json:"source"`
	Lang              string             `json:"lang"`
	AuthorID          string             `json:"author_id"`
	InReplyToUserID   string             `json:"in_reply_to_user_id,omitempty"`
	ConversationID    string             `json:"conversation_id"`
}

type Meta

type Meta struct {
	NewestID    string `json:"newest_id"`
	OldestID    string `json:"oldest_id"`
	ResultCount int    `json:"result_count"`
	NextToken   string `json:"next_token"`
}

type ReferencedTweets

type ReferencedTweets struct {
	Type string `json:"type"`
	ID   string `json:"id"`
}

type SearchRecentResponse

type SearchRecentResponse struct {
	Data []Data `json:"data"`
	Meta Meta   `json:"meta"`
}

func SearchRecent

func SearchRecent(queryString string) (searchRecentResponse SearchRecentResponse, resultCount int, nextToken string, err error)

func SearchRecentNextToken

func SearchRecentNextToken(queryString string, token string) (searchRecentResponse SearchRecentResponse, resultCount int, nextToken string, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL