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
TargetID string `json:"target_user_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 {
Blocking bool `json:"blocking"`
} `json:"data"`
}
func (*CreateOutput) HasPartialError ¶
func (r *CreateOutput) HasPartialError() bool
type DeleteInput ¶
type DeleteInput struct {
// Path parameters
SourceUserID string // The authenticated user ID
TargetID string // The user ID for unfollow
}
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 {
Blocking bool `json:"blocking"`
} `json:"data"`
}
func (*DeleteOutput) HasPartialError ¶
func (r *DeleteOutput) HasPartialError() bool
type ListInput ¶
type ListInput struct {
// Path parameter
ID string
// Query parameters
MaxResults ListMaxResults
PaginationToken string
Expansions fields.ExpansionList
TweetFields fields.TweetFieldList
UserFields fields.UserFieldList
}
func (*ListInput) ContentType ¶
func (*ListInput) ParameterMap ¶
func (*ListInput) ResolveEndpoint ¶
type ListMaxResults ¶
type ListMaxResults int
func (ListMaxResults) String ¶
func (m ListMaxResults) String() string
func (ListMaxResults) Valid ¶
func (m ListMaxResults) Valid() bool
type ListOutput ¶
type ListOutput 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 (*ListOutput) HasPartialError ¶
func (r *ListOutput) HasPartialError() bool
Click to show internal directories.
Click to hide internal directories.