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 CreateFollowingInput

type CreateFollowingInput struct {

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

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

func (*CreateFollowingInput) AccessToken

func (p *CreateFollowingInput) AccessToken() string

func (*CreateFollowingInput) Body

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

func (*CreateFollowingInput) ParameterMap

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

func (*CreateFollowingInput) ResolveEndpoint

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

func (*CreateFollowingInput) SetAccessToken

func (p *CreateFollowingInput) SetAccessToken(token string)

type CreateFollowingOutput

type CreateFollowingOutput struct {
	Data struct {
		Following     bool `json:"following"`
		PendingFollow bool `json:"pending_follow"`
	} `json:"data"`
}

func (*CreateFollowingOutput) HasPartialError

func (r *CreateFollowingOutput) HasPartialError() bool

type DeleteFollowingInput

type DeleteFollowingInput struct {

	// Path parameters
	SourceUserID string // The authenticated user ID
	TargetID     string // The user ID for unfollow
	// contains filtered or unexported fields
}

func (*DeleteFollowingInput) AccessToken

func (p *DeleteFollowingInput) AccessToken() string

func (*DeleteFollowingInput) Body

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

func (*DeleteFollowingInput) ParameterMap

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

func (*DeleteFollowingInput) ResolveEndpoint

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

func (*DeleteFollowingInput) SetAccessToken

func (p *DeleteFollowingInput) SetAccessToken(token string)

type DeleteFollowingOutput

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

func (*DeleteFollowingOutput) HasPartialError

func (r *DeleteFollowingOutput) HasPartialError() bool

type ListFollowersInput

type ListFollowersInput struct {

	// Path parameter
	ID string

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

func (*ListFollowersInput) AccessToken

func (p *ListFollowersInput) AccessToken() string

func (*ListFollowersInput) Body

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

func (*ListFollowersInput) ParameterMap

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

func (*ListFollowersInput) ResolveEndpoint

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

func (*ListFollowersInput) SetAccessToken

func (p *ListFollowersInput) SetAccessToken(token string)

type ListFollowersOutput

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

func (*ListFollowersOutput) HasPartialError

func (r *ListFollowersOutput) HasPartialError() bool

type ListFollowingsInput

type ListFollowingsInput struct {

	// Path parameter
	ID string

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

func (*ListFollowingsInput) AccessToken

func (p *ListFollowingsInput) AccessToken() string

func (*ListFollowingsInput) Body

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

func (*ListFollowingsInput) ParameterMap

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

func (*ListFollowingsInput) ResolveEndpoint

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

func (*ListFollowingsInput) SetAccessToken

func (p *ListFollowingsInput) SetAccessToken(token string)

type ListFollowingsOutput

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

func (*ListFollowingsOutput) HasPartialError

func (r *ListFollowingsOutput) HasPartialError() bool

type ListMaxResults

type ListMaxResults int

func (ListMaxResults) String

func (m ListMaxResults) String() string

func (ListMaxResults) Valid

func (m ListMaxResults) Valid() bool

Jump to

Keyboard shortcuts

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