Documentation
¶
Index ¶
Constants ¶
View Source
const ( ListSortOrderRecency = "recency" ListSortOrderRelevancy = "relevancy" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListAllInput ¶
type ListAllInput struct {
// Path parameters
Query string
StartTime *time.Time
EndTime *time.Time
SinceID string
UntilID string
Expansions fields.ExpansionList
MediaFields fields.MediaFieldList
PlaceFields fields.PlaceFieldList
PollFields fields.PollFieldList
TweetFields fields.TweetFieldList
UserFields fields.UserFieldList
NextToken string
MaxResults ListMaxResults
SortOrder ListSortOrder
}
func (*ListAllInput) Body ¶
func (p *ListAllInput) Body() io.Reader
func (*ListAllInput) ContentType ¶
func (p *ListAllInput) ContentType() string
func (*ListAllInput) ParameterMap ¶
func (p *ListAllInput) ParameterMap() map[string]string
func (*ListAllInput) ResolveEndpoint ¶
func (p *ListAllInput) ResolveEndpoint(endpointBase string) string
type ListAllOutput ¶
type ListAllOutput struct {
Data []resources.Tweet `json:"data"`
Meta resources.PaginationMeta `json:"meta"`
Includes struct {
Users []resources.User `json:"users,omitempty"`
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"`
Errors []resources.PartialError `json:"errors"`
}
func (*ListAllOutput) HasPartialError ¶
func (r *ListAllOutput) HasPartialError() bool
type ListMaxResults ¶
type ListMaxResults int
func (ListMaxResults) String ¶
func (m ListMaxResults) String() string
func (ListMaxResults) Valid ¶
func (m ListMaxResults) Valid() bool
type ListRecentInput ¶
type ListRecentInput struct {
// Path parameters
Query string
StartTime *time.Time
EndTime *time.Time
SinceID string
UntilID string
Expansions fields.ExpansionList
MediaFields fields.MediaFieldList
PlaceFields fields.PlaceFieldList
PollFields fields.PollFieldList
TweetFields fields.TweetFieldList
UserFields fields.UserFieldList
NextToken string
MaxResults ListMaxResults
SortOrder ListSortOrder
}
func (*ListRecentInput) Body ¶
func (p *ListRecentInput) Body() io.Reader
func (*ListRecentInput) ContentType ¶
func (p *ListRecentInput) ContentType() string
func (*ListRecentInput) ParameterMap ¶
func (p *ListRecentInput) ParameterMap() map[string]string
func (*ListRecentInput) ResolveEndpoint ¶
func (p *ListRecentInput) ResolveEndpoint(endpointBase string) string
type ListRecentOutput ¶
type ListRecentOutput struct {
Data []resources.Tweet `json:"data"`
Meta resources.PaginationMeta `json:"meta"`
Includes struct {
Users []resources.User `json:"users,omitempty"`
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"`
Errors []resources.PartialError `json:"errors"`
}
func (*ListRecentOutput) HasPartialError ¶
func (r *ListRecentOutput) HasPartialError() bool
type ListSortOrder ¶
type ListSortOrder string
func (ListSortOrder) String ¶
func (m ListSortOrder) String() string
func (ListSortOrder) Valid ¶
func (m ListSortOrder) Valid() bool
Click to show internal directories.
Click to hide internal directories.