types

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetInput

type GetInput struct {
	// Path parameter
	ID string // required: Space ID

	// Query parameters
	Expansions  fields.ExpansionList
	SpaceFields fields.SpaceFieldList
	UserFields  fields.UserFieldList
}

func (*GetInput) Body

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

func (*GetInput) ContentType

func (p *GetInput) ContentType() string

func (*GetInput) ParameterMap

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

func (*GetInput) ResolveEndpoint

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

type GetOutput

type GetOutput struct {
	Data     resources.Space `json:"data"`
	Includes struct {
		Users []resources.User `json:"users"`
	} `json:"includes"`
	Errors []resources.PartialError `json:"errors"`
}

func (*GetOutput) HasPartialError

func (r *GetOutput) HasPartialError() bool

type ListBuyersInput

type ListBuyersInput struct {
	// Path parameter
	ID string // required: Space ID

	// Query parameters
	Expansions  fields.ExpansionList
	MediaFields fields.MediaFieldList
	PlaceFields fields.PlaceFieldList
	PollFields  fields.PollFieldList
	TweetFields fields.TweetFieldList
	UserFields  fields.UserFieldList
}

func (*ListBuyersInput) Body

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

func (*ListBuyersInput) ContentType

func (p *ListBuyersInput) ContentType() string

func (*ListBuyersInput) ParameterMap

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

func (*ListBuyersInput) ResolveEndpoint

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

type ListBuyersOutput

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

func (*ListBuyersOutput) HasPartialError

func (r *ListBuyersOutput) HasPartialError() bool

type ListByCreatorIDsInput

type ListByCreatorIDsInput struct {
	// Query parameters
	UserIDs     []string // required
	Expansions  fields.ExpansionList
	SpaceFields fields.SpaceFieldList
	UserFields  fields.UserFieldList
}

ListByCreatorIDsInput is struct of parameters for request GET /2/spaces/by/creator_ids

func (*ListByCreatorIDsInput) Body

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

func (*ListByCreatorIDsInput) ContentType

func (p *ListByCreatorIDsInput) ContentType() string

func (*ListByCreatorIDsInput) ParameterMap

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

func (*ListByCreatorIDsInput) ResolveEndpoint

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

type ListByCreatorIDsOutput

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

func (*ListByCreatorIDsOutput) HasPartialError

func (r *ListByCreatorIDsOutput) HasPartialError() bool

type ListInput

type ListInput struct {
	// Query parameters
	IDs         []string // required: Space IDs
	Expansions  fields.ExpansionList
	SpaceFields fields.SpaceFieldList
	UserFields  fields.UserFieldList
}

ListInput is struct of parameters for request GET /2/spaces

func (*ListInput) Body

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

func (*ListInput) ContentType

func (p *ListInput) ContentType() string

func (*ListInput) ParameterMap

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

func (*ListInput) ResolveEndpoint

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

type ListOutput

type ListOutput struct {
	Data     []resources.Space `json:"data"`
	Includes struct {
		Users []resources.User `json:"users"`
	} `json:"includes"`
	Errors []resources.PartialError `json:"errors"`
}

func (*ListOutput) HasPartialError

func (r *ListOutput) HasPartialError() bool

type ListTweetsInput

type ListTweetsInput struct {
	// Path parameter
	ID string

	// Query parameters
	Expansions  fields.ExpansionList
	MediaFields fields.MediaFieldList
	PlaceFields fields.PlaceFieldList
	PollFields  fields.PollFieldList
	TweetFields fields.TweetFieldList
	UserFields  fields.UserFieldList
}

func (*ListTweetsInput) Body

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

func (*ListTweetsInput) ContentType

func (p *ListTweetsInput) ContentType() string

func (*ListTweetsInput) ParameterMap

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

func (*ListTweetsInput) ResolveEndpoint

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

type ListTweetsOutput

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

func (*ListTweetsOutput) HasPartialError

func (r *ListTweetsOutput) HasPartialError() bool

Jump to

Keyboard shortcuts

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