types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ListSortOrderRecency   = "recency"
	ListSortOrderRelevancy = "relevancy"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ListAllInput

type ListAllInput struct {

	// Path parameters
	Query       string
	StartTime   *time.Time
	EndTime     *time.Time
	SinceID     string
	UntilID     string
	Expansions  fields.ExpansionList
	MediaFields fields.MediaFieldList
	PlaceFields fields.PlaceFieldList
	PollFields  fields.PollFieldList
	TweetFields fields.TweetFieldList
	UserFields  fields.UserFieldList
	NextToken   string
	MaxResults  ListMaxResults
	SortOrder   ListSortOrder
	// contains filtered or unexported fields
}

func (*ListAllInput) AccessToken

func (p *ListAllInput) AccessToken() string

func (*ListAllInput) Body

func (p *ListAllInput) Body() (io.Reader, error)

func (*ListAllInput) ParameterMap

func (p *ListAllInput) ParameterMap() map[string]string

func (*ListAllInput) ResolveEndpoint

func (p *ListAllInput) ResolveEndpoint(endpointBase string) string

func (*ListAllInput) SetAccessToken

func (p *ListAllInput) SetAccessToken(token string)

type ListAllOutput

type ListAllOutput struct {
	Data     []resources.Tweet        `json:"data"`
	Meta     resources.PaginationMeta `json:"meta"`
	Includes struct {
		Users  []resources.User  `json:"users,omitempty"`
		Tweets []resources.Tweet `json:"tweets,omitempty"`
		Places []resources.Place `json:"places,omitempty"`
		Media  []resources.Media `json:"media,omitempty"`
		Polls  []resources.Poll  `json:"polls,omitempty"`
	} `json:"includes"`
	Errors []resources.PartialError `json:"errors"`
}

func (*ListAllOutput) HasPartialError

func (r *ListAllOutput) HasPartialError() bool

type ListMaxResults

type ListMaxResults int

func (ListMaxResults) String

func (m ListMaxResults) String() string

func (ListMaxResults) Valid

func (m ListMaxResults) Valid() bool

type ListRecentInput

type ListRecentInput struct {

	// Path parameters
	Query       string
	StartTime   *time.Time
	EndTime     *time.Time
	SinceID     string
	UntilID     string
	Expansions  fields.ExpansionList
	MediaFields fields.MediaFieldList
	PlaceFields fields.PlaceFieldList
	PollFields  fields.PollFieldList
	TweetFields fields.TweetFieldList
	UserFields  fields.UserFieldList
	NextToken   string
	MaxResults  ListMaxResults
	SortOrder   ListSortOrder
	// contains filtered or unexported fields
}

func (*ListRecentInput) AccessToken

func (p *ListRecentInput) AccessToken() string

func (*ListRecentInput) Body

func (p *ListRecentInput) Body() (io.Reader, error)

func (*ListRecentInput) ParameterMap

func (p *ListRecentInput) ParameterMap() map[string]string

func (*ListRecentInput) ResolveEndpoint

func (p *ListRecentInput) ResolveEndpoint(endpointBase string) string

func (*ListRecentInput) SetAccessToken

func (p *ListRecentInput) SetAccessToken(token string)

type ListRecentOutput

type ListRecentOutput struct {
	Data     []resources.Tweet        `json:"data"`
	Meta     resources.PaginationMeta `json:"meta"`
	Includes struct {
		Users  []resources.User  `json:"users,omitempty"`
		Tweets []resources.Tweet `json:"tweets,omitempty"`
		Places []resources.Place `json:"places,omitempty"`
		Media  []resources.Media `json:"media,omitempty"`
		Polls  []resources.Poll  `json:"polls,omitempty"`
	} `json:"includes"`
	Errors []resources.PartialError `json:"errors"`
}

func (*ListRecentOutput) HasPartialError

func (r *ListRecentOutput) HasPartialError() bool

type ListSortOrder

type ListSortOrder string

func (ListSortOrder) String

func (m ListSortOrder) String() string

func (ListSortOrder) Valid

func (m ListSortOrder) Valid() bool

Jump to

Keyboard shortcuts

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