types

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 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:"-"` // User ID

	// JSON body parameter
	ListID string `json:"list_id"` // required
}

func (*CreateInput) Body

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

func (*CreateInput) ContentType

func (p *CreateInput) ContentType() string

func (*CreateInput) ParameterMap

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

func (*CreateInput) ResolveEndpoint

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

type CreateOutput

type CreateOutput struct {
	Data struct {
		Following bool `json:"following"`
	} `json:"data"`
}

func (*CreateOutput) HasPartialError

func (r *CreateOutput) HasPartialError() bool

type DeleteInput

type DeleteInput struct {
	// Path parameter
	ID     string // User ID
	ListID string
}

func (*DeleteInput) Body

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

func (*DeleteInput) ContentType

func (p *DeleteInput) ContentType() string

func (*DeleteInput) ParameterMap

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

func (*DeleteInput) ResolveEndpoint

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

type DeleteOutput

type DeleteOutput struct {
	Data struct {
		Following bool `json:"following"`
	} `json:"data"`
}

func (*DeleteOutput) HasPartialError

func (r *DeleteOutput) HasPartialError() bool

type ListFollowedInput

type ListFollowedInput struct {
	// Path parameter
	ID string // User ID

	// Query parameters
	MaxResults      ListFollowedMaxResults
	PaginationToken string
	Expansions      fields.ExpansionList
	ListFields      fields.ListFieldList
	UserFields      fields.UserFieldList
}

func (*ListFollowedInput) Body

func (p *ListFollowedInput) Body() io.Reader

func (*ListFollowedInput) ContentType

func (p *ListFollowedInput) ContentType() string

func (*ListFollowedInput) ParameterMap

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

func (*ListFollowedInput) ResolveEndpoint

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

type ListFollowedMaxResults

type ListFollowedMaxResults int

func (ListFollowedMaxResults) String

func (m ListFollowedMaxResults) String() string

func (ListFollowedMaxResults) Valid

func (m ListFollowedMaxResults) Valid() bool

type ListFollowedOutput

type ListFollowedOutput struct {
	Data     []resources.List `json:"data"`
	Includes struct {
		Users []resources.User `json:"users"`
	} `json:"includes"`
	Meta   resources.ListFollowsFollowedListsMeta `json:"meta"`
	Errors []resources.PartialError               `json:"errors"`
}

func (*ListFollowedOutput) HasPartialError

func (r *ListFollowedOutput) HasPartialError() bool

type ListFollowersInput

type ListFollowersInput struct {
	// Path parameter
	ID string // List ID

	// Query parameters
	MaxResults      ListFollowersMaxResults
	PaginationToken string
	Expansions      fields.ExpansionList
	TweetFields     fields.TweetFieldList
	UserFields      fields.UserFieldList
}

func (*ListFollowersInput) Body

func (p *ListFollowersInput) Body() io.Reader

func (*ListFollowersInput) ContentType

func (p *ListFollowersInput) ContentType() string

func (*ListFollowersInput) ParameterMap

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

func (*ListFollowersInput) ResolveEndpoint

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

type ListFollowersMaxResults

type ListFollowersMaxResults int

func (ListFollowersMaxResults) String

func (m ListFollowersMaxResults) String() string

func (ListFollowersMaxResults) Valid

func (m ListFollowersMaxResults) Valid() bool

type ListFollowersOutput

type ListFollowersOutput struct {
	Data     []resources.User `json:"data"`
	Includes struct {
		Tweets []resources.Tweet `json:"tweets"`
	} `json:"includes"`
	Meta   resources.ListFollowsFollowersMeta `json:"meta"`
	Errors []resources.PartialError           `json:"errors"`
}

func (*ListFollowersOutput) HasPartialError

func (r *ListFollowersOutput) HasPartialError() bool

Jump to

Keyboard shortcuts

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