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:"-"` // The authenticated user ID
// JSON body parameter
TweetID string `json:"tweet_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 {
Retweeted bool `json:"retweeted"`
} `json:"data"`
}
func (*CreateOutput) HasPartialError ¶
func (r *CreateOutput) HasPartialError() bool
type DeleteInput ¶
type DeleteInput struct {
// Path parameter
ID string // The authenticated user ID
SourceTweetID 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 {
Retweeted bool `json:"retweeted"`
} `json:"data"`
}
func (*DeleteOutput) HasPartialError ¶
func (r *DeleteOutput) HasPartialError() bool
type ListUsersInput ¶
type ListUsersInput struct {
// Path parameter
ID string // Tweet ID
// Query parameters
Expansions fields.ExpansionList
MaxResults ListUsersMaxResults // default 100
PaginationToken string
TweetFields fields.TweetFieldList
UserFields fields.UserFieldList
}
func (*ListUsersInput) Body ¶
func (p *ListUsersInput) Body() io.Reader
func (*ListUsersInput) ContentType ¶
func (p *ListUsersInput) ContentType() string
func (*ListUsersInput) ParameterMap ¶
func (p *ListUsersInput) ParameterMap() map[string]string
func (*ListUsersInput) ResolveEndpoint ¶
func (p *ListUsersInput) ResolveEndpoint(endpointBase string) string
type ListUsersMaxResults ¶
type ListUsersMaxResults int
func (ListUsersMaxResults) String ¶
func (m ListUsersMaxResults) String() string
func (ListUsersMaxResults) Valid ¶
func (m ListUsersMaxResults) Valid() bool
type ListUsersOutput ¶
type ListUsersOutput struct {
Data []resources.User `json:"data"`
Includes struct {
Tweets []resources.Tweet `json:"tweets,omitempty"`
Places []resources.Place `json:"places,omitempty"`
Media []resources.Media `json:"media,omitempty"`
Polls []resources.Poll `json:"polls,omitempty"`
} `json:"includes,omitempty"`
Errors []resources.PartialError `json:"errors,omitempty"`
}
func (*ListUsersOutput) HasPartialError ¶
func (r *ListUsersOutput) HasPartialError() bool
Click to show internal directories.
Click to hide internal directories.