Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ListMembersListMembershipsQueryParams = map[string]struct{}{
"max_results": {},
"pagination_token": {},
"expansions": {},
"list.fields": {},
"user.fields": {},
}
Functions ¶
This section is empty.
Types ¶
type CreateInput ¶
type CreateInput struct {
// Path parameter
ID string `json:"-"` // List ID
// JSON body parameter
UserID string `json:"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 {
IsMember bool `json:"is_member"`
} `json:"data"`
}
func (*CreateOutput) HasPartialError ¶
func (r *CreateOutput) HasPartialError() bool
type DeleteInput ¶
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 {
IsMember bool `json:"is_member"`
} `json:"data"`
}
func (*DeleteOutput) HasPartialError ¶
func (r *DeleteOutput) HasPartialError() bool
type ListInput ¶
type ListInput struct {
// Path parameter
ID string // List ID
// Query parameters
Expansions fields.ExpansionList
ListFields fields.ListFieldList
UserFields fields.UserFieldList
MaxResults ListMembersGetMaxResults
PaginationToken string
}
func (*ListInput) ContentType ¶
func (*ListInput) ParameterMap ¶
func (*ListInput) ResolveEndpoint ¶
type ListMembersGetMaxResults ¶
type ListMembersGetMaxResults int
func (ListMembersGetMaxResults) String ¶
func (m ListMembersGetMaxResults) String() string
func (ListMembersGetMaxResults) Valid ¶
func (m ListMembersGetMaxResults) Valid() bool
type ListMembershipsInput ¶
type ListMembershipsInput struct {
// Path parameter
ID string // User ID
// Query parameters
MaxResults ListMembershipsMaxResults
PaginationToken string
Expansions fields.ExpansionList
ListFields fields.ListFieldList
UserFields fields.UserFieldList
}
func (*ListMembershipsInput) Body ¶
func (p *ListMembershipsInput) Body() io.Reader
func (*ListMembershipsInput) ContentType ¶
func (p *ListMembershipsInput) ContentType() string
func (*ListMembershipsInput) ParameterMap ¶
func (p *ListMembershipsInput) ParameterMap() map[string]string
func (*ListMembershipsInput) ResolveEndpoint ¶
func (p *ListMembershipsInput) ResolveEndpoint(endpointBase string) string
type ListMembershipsMaxResults ¶
type ListMembershipsMaxResults int
func (ListMembershipsMaxResults) String ¶
func (m ListMembershipsMaxResults) String() string
func (ListMembershipsMaxResults) Valid ¶
func (m ListMembershipsMaxResults) Valid() bool
type ListMembershipsOutput ¶
type ListMembershipsOutput struct {
Data []resources.List `json:"data"`
Includes struct {
Users []resources.User `json:"users"`
} `json:"includes"`
Meta resources.ListMembersListMembershipsMeta `json:"meta"`
Errors []resources.PartialError `json:"errors"`
}
func (*ListMembershipsOutput) HasPartialError ¶
func (r *ListMembershipsOutput) HasPartialError() bool
type ListOutput ¶
type ListOutput struct {
Data []resources.User `json:"data"`
Includes struct {
Tweets []resources.Tweet `json:"tweets"`
} `json:"includes"`
Meta resources.ListMembersGetMeta `json:"meta"`
Errors []resources.PartialError `json:"errors"`
}
func (*ListOutput) HasPartialError ¶
func (r *ListOutput) HasPartialError() bool
Click to show internal directories.
Click to hide internal directories.