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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateInput

type CreateInput struct {

	// Path parameter
	ID string `json:"-"` // The authenticated user ID

	// JSON body parameter
	TweetID string `json:"tweet_id"` // required
	// contains filtered or unexported fields
}

func (*CreateInput) AccessToken

func (p *CreateInput) AccessToken() string

func (*CreateInput) Body

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

func (*CreateInput) ParameterMap

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

func (*CreateInput) ResolveEndpoint

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

func (*CreateInput) SetAccessToken

func (p *CreateInput) SetAccessToken(token string)

type CreateOutput

type CreateOutput struct {
	Data struct {
		Liked bool `json:"liked"`
	} `json:"data"`
}

func (*CreateOutput) HasPartialError

func (r *CreateOutput) HasPartialError() bool

type DeleteInput

type DeleteInput struct {

	// Path parameter
	ID      string // The authenticated user ID
	TweetID string
	// contains filtered or unexported fields
}

func (*DeleteInput) AccessToken

func (p *DeleteInput) AccessToken() string

func (*DeleteInput) Body

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

func (*DeleteInput) ParameterMap

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

func (*DeleteInput) ResolveEndpoint

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

func (*DeleteInput) SetAccessToken

func (p *DeleteInput) SetAccessToken(token string)

type DeleteOutput

type DeleteOutput struct {
	Data struct {
		Liked bool `json:"liked"`
	} `json:"data"`
}

func (*DeleteOutput) HasPartialError

func (r *DeleteOutput) HasPartialError() bool

type ListInput

type ListInput struct {

	// Path parameter
	ID string // required: User ID of the user to request liked Tweets for

	// Query parameters
	MaxResults      ListMaxResults
	PaginationToken string
	Expansions      fields.ExpansionList
	MediaFields     fields.MediaFieldList
	PlaceFields     fields.PlaceFieldList
	PollFields      fields.PollFieldList
	TweetFields     fields.TweetFieldList
	UserFields      fields.UserFieldList
	// contains filtered or unexported fields
}

func (*ListInput) AccessToken

func (p *ListInput) AccessToken() string

func (*ListInput) Body

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

func (*ListInput) ParameterMap

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

func (*ListInput) ResolveEndpoint

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

func (*ListInput) SetAccessToken

func (p *ListInput) SetAccessToken(token string)

type ListMaxResults

type ListMaxResults int

func (ListMaxResults) String

func (m ListMaxResults) String() string

func (ListMaxResults) Valid

func (m ListMaxResults) Valid() bool

type ListOutput

type ListOutput struct {
	Data     []resources.Tweet `json:"data"`
	Meta     resources.PaginationMeta
	Includes struct {
		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 (*ListOutput) HasPartialError

func (r *ListOutput) HasPartialError() bool

type ListUsersInput

type ListUsersInput struct {

	// Path parameter
	ID string // Tweet ID

	// Query parameters
	Expansions      fields.ExpansionList
	MaxResults      ListUsersMaxResults // default 100
	PaginationToken string
	TweetFields     fields.TweetFieldList
	UserFields      fields.UserFieldList
	// contains filtered or unexported fields
}

func (*ListUsersInput) AccessToken

func (p *ListUsersInput) AccessToken() string

func (*ListUsersInput) Body

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

func (*ListUsersInput) ParameterMap

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

func (*ListUsersInput) ResolveEndpoint

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

func (*ListUsersInput) SetAccessToken

func (p *ListUsersInput) SetAccessToken(token string)

type ListUsersMaxResults

type ListUsersMaxResults int

func (ListUsersMaxResults) String

func (m ListUsersMaxResults) String() string

func (ListUsersMaxResults) Valid

func (m ListUsersMaxResults) Valid() bool

type ListUsersOutput

type ListUsersOutput struct {
	Data     []resources.User `json:"data"`
	Includes struct {
		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 (*ListUsersOutput) HasPartialError

func (r *ListUsersOutput) HasPartialError() bool

Jump to

Keyboard shortcuts

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