Documentation
¶
Index ¶
- type CreateFollowingInput
- func (p *CreateFollowingInput) AccessToken() string
- func (p *CreateFollowingInput) Body() (io.Reader, error)
- func (p *CreateFollowingInput) ParameterMap() map[string]string
- func (p *CreateFollowingInput) ResolveEndpoint(endpointBase string) string
- func (p *CreateFollowingInput) SetAccessToken(token string)
- type CreateFollowingOutput
- type DeleteFollowingInput
- func (p *DeleteFollowingInput) AccessToken() string
- func (p *DeleteFollowingInput) Body() (io.Reader, error)
- func (p *DeleteFollowingInput) ParameterMap() map[string]string
- func (p *DeleteFollowingInput) ResolveEndpoint(endpointBase string) string
- func (p *DeleteFollowingInput) SetAccessToken(token string)
- type DeleteFollowingOutput
- type ListFollowersInput
- type ListFollowersOutput
- type ListFollowingsInput
- func (p *ListFollowingsInput) AccessToken() string
- func (p *ListFollowingsInput) Body() (io.Reader, error)
- func (p *ListFollowingsInput) ParameterMap() map[string]string
- func (p *ListFollowingsInput) ResolveEndpoint(endpointBase string) string
- func (p *ListFollowingsInput) SetAccessToken(token string)
- type ListFollowingsOutput
- type ListMaxResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateFollowingInput ¶
type CreateFollowingInput struct {
// Path parameter
ID string `json:"-"` // The authenticated user ID
// JSON body parameter
TargetID string `json:"target_user_id"` // required
// contains filtered or unexported fields
}
func (*CreateFollowingInput) AccessToken ¶
func (p *CreateFollowingInput) AccessToken() string
func (*CreateFollowingInput) ParameterMap ¶
func (p *CreateFollowingInput) ParameterMap() map[string]string
func (*CreateFollowingInput) ResolveEndpoint ¶
func (p *CreateFollowingInput) ResolveEndpoint(endpointBase string) string
func (*CreateFollowingInput) SetAccessToken ¶
func (p *CreateFollowingInput) SetAccessToken(token string)
type CreateFollowingOutput ¶
type CreateFollowingOutput struct {
Data struct {
Following bool `json:"following"`
PendingFollow bool `json:"pending_follow"`
} `json:"data"`
}
func (*CreateFollowingOutput) HasPartialError ¶
func (r *CreateFollowingOutput) HasPartialError() bool
type DeleteFollowingInput ¶
type DeleteFollowingInput struct {
// Path parameters
SourceUserID string // The authenticated user ID
TargetID string // The user ID for unfollow
// contains filtered or unexported fields
}
func (*DeleteFollowingInput) AccessToken ¶
func (p *DeleteFollowingInput) AccessToken() string
func (*DeleteFollowingInput) ParameterMap ¶
func (p *DeleteFollowingInput) ParameterMap() map[string]string
func (*DeleteFollowingInput) ResolveEndpoint ¶
func (p *DeleteFollowingInput) ResolveEndpoint(endpointBase string) string
func (*DeleteFollowingInput) SetAccessToken ¶
func (p *DeleteFollowingInput) SetAccessToken(token string)
type DeleteFollowingOutput ¶
type DeleteFollowingOutput struct {
Data struct {
Following bool `json:"following"`
} `json:"data"`
}
func (*DeleteFollowingOutput) HasPartialError ¶
func (r *DeleteFollowingOutput) HasPartialError() bool
type ListFollowersInput ¶
type ListFollowersInput struct {
// Path parameter
ID string
// Query parameters
MaxResults ListMaxResults
PaginationToken string
Expansions fields.ExpansionList
TweetFields fields.TweetFieldList
UserFields fields.UserFieldList
// contains filtered or unexported fields
}
func (*ListFollowersInput) AccessToken ¶
func (p *ListFollowersInput) AccessToken() string
func (*ListFollowersInput) ParameterMap ¶
func (p *ListFollowersInput) ParameterMap() map[string]string
func (*ListFollowersInput) ResolveEndpoint ¶
func (p *ListFollowersInput) ResolveEndpoint(endpointBase string) string
func (*ListFollowersInput) SetAccessToken ¶
func (p *ListFollowersInput) SetAccessToken(token string)
type ListFollowersOutput ¶
type ListFollowersOutput 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 (*ListFollowersOutput) HasPartialError ¶
func (r *ListFollowersOutput) HasPartialError() bool
type ListFollowingsInput ¶
type ListFollowingsInput struct {
// Path parameter
ID string
// Query parameters
MaxResults ListMaxResults
PaginationToken string
Expansions fields.ExpansionList
TweetFields fields.TweetFieldList
UserFields fields.UserFieldList
// contains filtered or unexported fields
}
func (*ListFollowingsInput) AccessToken ¶
func (p *ListFollowingsInput) AccessToken() string
func (*ListFollowingsInput) ParameterMap ¶
func (p *ListFollowingsInput) ParameterMap() map[string]string
func (*ListFollowingsInput) ResolveEndpoint ¶
func (p *ListFollowingsInput) ResolveEndpoint(endpointBase string) string
func (*ListFollowingsInput) SetAccessToken ¶
func (p *ListFollowingsInput) SetAccessToken(token string)
type ListFollowingsOutput ¶
type ListFollowingsOutput 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 (*ListFollowingsOutput) HasPartialError ¶
func (r *ListFollowingsOutput) HasPartialError() bool
type ListMaxResults ¶
type ListMaxResults int
func (ListMaxResults) String ¶
func (m ListMaxResults) String() string
func (ListMaxResults) Valid ¶
func (m ListMaxResults) Valid() bool
Click to show internal directories.
Click to hide internal directories.