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: 4 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 {

	// JSON body parameter
	DirectMessageDeepLink *string           `json:"direct_message_deep_link,omitempty"`
	ForSuperFollowersOnly *bool             `json:"for_super_followers_only,omitempty"`
	Geo                   *CreateInputGeo   `json:"geo,omitempty"`
	Media                 *CreateInputMedia `json:"media,omitempty"`
	Poll                  *CreateInputPoll  `json:"poll,omitempty"`
	QuoteTweetID          *string           `json:"quote_tweet_id,omitempty"`
	Reply                 *CreateInputReply `json:"reply,omitempty"`
	ReplySettings         *string           `json:"reply_settings,omitempty"`
	Text                  *string           `json:"text,omitempty"`
	// contains filtered or unexported fields
}

CreateInput is struct for the parameters that used for calling POST /2/tweets API.

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 CreateInputGeo

type CreateInputGeo struct {
	PlaceID *string `json:"place_id,omitempty"`
}

type CreateInputMedia

type CreateInputMedia struct {
	MediaIDs     []string `json:"media_ids,omitempty"`
	TaggedUserID *string  `json:"tagged_user_ids,omitempty"`
}

type CreateInputPoll

type CreateInputPoll struct {
	DurationMinutes *int     `json:"duration_minutes,omitempty"`
	Options         []string `json:"options,omitempty"`
}

type CreateInputReply

type CreateInputReply struct {
	ExcludeReplyUserIDs []string `json:"exclude_reply_user_ids,omitempty"`
	InReplyToTweetID    string   `json:"in_reply_to_tweet_id,omitempty"`
}

type CreateOutput

type CreateOutput struct {
	Data struct {
		ID   *string `json:"id"`
		Text *string `json:"text"`
	} `json:"data"`
}

func (*CreateOutput) HasPartialError

func (r *CreateOutput) HasPartialError() bool

type DeleteInput

type DeleteInput struct {

	// Path parameter
	ID string // required: The tweet ID to delete
	// 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 {
		Deleted *bool `json:"deleted"`
	} `json:"data"`
}

func (*DeleteOutput) HasPartialError

func (r *DeleteOutput) HasPartialError() bool

Jump to

Keyboard shortcuts

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