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:"-"` // required: The authenticated user ID

	// JSON body parameter
	TargetID string `json:"target_user_id"` // required: target user ID to mute
}

CreateInput is struct for requesting `POST /2/users/:id/muting`. more information: https://developer.twitter.com/en/docs/twitter-api/users/mutes/api-reference/post-users-user_id-muting

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 {
		Muting bool `json:"muting"`
	} `json:"data"`
}

CreateOutput is struct for response of `POST /2/users/:id/muting`. more information: https://developer.twitter.com/en/docs/twitter-api/users/mutes/api-reference/post-users-user_id-muting more information:

func (*CreateOutput) HasPartialError

func (r *CreateOutput) HasPartialError() bool

type DeleteInput

type DeleteInput struct {
	// Path parameters
	SourceUserID string // required: The authenticated user ID
	TargetID     string // required: The user ID to unmute
}

DeleteInput is struct for requesting `DELETE /2/users/:source_user_id/muting/:target_user_id`. more information: https://developer.twitter.com/en/docs/twitter-api/users/mutes/api-reference/delete-users-user_id-muting

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 {
		Muting bool `json:"muting"`
	} `json:"data"`
}

DeleteOutput is struct for response of `DELETE /2/users/:source_user_id/muting/:target_user_id`. more information: https://developer.twitter.com/en/docs/twitter-api/users/mutes/api-reference/delete-users-user_id-muting more information:

func (*DeleteOutput) HasPartialError

func (r *DeleteOutput) HasPartialError() bool

type ListMaxResults

type ListMaxResults int

func (ListMaxResults) String

func (m ListMaxResults) String() string

func (ListMaxResults) Valid

func (m ListMaxResults) Valid() bool

type ListsInput

type ListsInput struct {
	// Path parameter
	ID string // required: The authenticated user ID

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

ListsInput is struct for requesting `GET /2/users/:id/muting`. more information: https://developer.twitter.com/en/docs/twitter-api/users/mutes/api-reference/get-users-muting

func (*ListsInput) Body

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

func (*ListsInput) ContentType

func (p *ListsInput) ContentType() string

func (*ListsInput) ParameterMap

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

func (*ListsInput) ResolveEndpoint

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

type ListsOutput

type ListsOutput 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"`
}

ListsOutput is struct for response of `GET /2/users/:id/muting`. more information: https://developer.twitter.com/en/docs/twitter-api/users/mutes/api-reference/get-users-muting more information:

func (*ListsOutput) HasPartialError

func (r *ListsOutput) HasPartialError() bool

Jump to

Keyboard shortcuts

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