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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SampleStreamBackfillMinutes

type SampleStreamBackfillMinutes int

func (SampleStreamBackfillMinutes) String

func (SampleStreamBackfillMinutes) Valid

type SampleStreamInput

type SampleStreamInput struct {

	// Query parameters
	BackfillMinutes SampleStreamBackfillMinutes
	Expansions      fields.ExpansionList
	MediaFields     fields.MediaFieldList
	PlaceFields     fields.PlaceFieldList
	PollFields      fields.PollFieldList
	TweetFields     fields.TweetFieldList
	UserFields      fields.UserFieldList
	// contains filtered or unexported fields
}

func (*SampleStreamInput) AccessToken

func (p *SampleStreamInput) AccessToken() string

func (*SampleStreamInput) Body

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

func (*SampleStreamInput) ParameterMap

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

func (*SampleStreamInput) ResolveEndpoint

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

func (*SampleStreamInput) SetAccessToken

func (p *SampleStreamInput) SetAccessToken(token string)

type SampleStreamOutput

type SampleStreamOutput struct {
	Data     resources.Tweet `json:"data"`
	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,omitempty"`
	Errors []resources.PartialError `json:"errors,omitempty"`
}

func (*SampleStreamOutput) HasPartialError

func (r *SampleStreamOutput) HasPartialError() bool

Jump to

Keyboard shortcuts

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