types

package
v0.11.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ListFollowsFollowedListsQueryParams = map[string]struct{}{
	"max_results":      {},
	"pagination_token": {},
	"expansions":       {},
	"list.fields":      {},
	"user.fields":      {},
}
View Source
var ListFollowsFollowersQueryParams = map[string]struct{}{
	"max_results":      {},
	"pagination_token": {},
	"expansions":       {},
	"tweet.fields":     {},
	"user.fields":      {},
}
View Source
var ListLookupIDQueryParams = map[string]struct{}{
	"expansions":  {},
	"list.fields": {},
	"user.fields": {},
}
View Source
var ListLookupOwnedListsQueryParams = map[string]struct{}{
	"expansions":       {},
	"list.fields":      {},
	"user.fields":      {},
	"max_results":      {},
	"pagination_token": {},
}
View Source
var ListMembersListMembershipsQueryParams = map[string]struct{}{
	"max_results":      {},
	"pagination_token": {},
	"expansions":       {},
	"list.fields":      {},
	"user.fields":      {},
}
View Source
var ListTweetsLookupQueryParams = map[string]struct{}{
	"max_results":      {},
	"pagination_token": {},
	"expansions":       {},
	"tweet.fields":     {},
	"user.fields":      {},
}
View Source
var PinnedListsGetQueryParams = map[string]struct{}{
	"expansions":  {},
	"list.fields": {},
	"user.fields": {},
}

Functions

This section is empty.

Types

type ListFollowsDeleteParams

type ListFollowsDeleteParams struct {

	// Path parameter
	ID     string // User ID
	ListID string
	// contains filtered or unexported fields
}

func (*ListFollowsDeleteParams) AccessToken

func (p *ListFollowsDeleteParams) AccessToken() string

func (*ListFollowsDeleteParams) Body

func (p *ListFollowsDeleteParams) Body() (io.Reader, error)

func (*ListFollowsDeleteParams) ParameterMap

func (p *ListFollowsDeleteParams) ParameterMap() map[string]string

func (*ListFollowsDeleteParams) ResolveEndpoint

func (p *ListFollowsDeleteParams) ResolveEndpoint(endpointBase string) string

func (*ListFollowsDeleteParams) SetAccessToken

func (p *ListFollowsDeleteParams) SetAccessToken(token string)

type ListFollowsDeleteResponse

type ListFollowsDeleteResponse struct {
	Data struct {
		Following bool `json:"following"`
	} `json:"data"`
}

func (*ListFollowsDeleteResponse) HasPartialError

func (r *ListFollowsDeleteResponse) HasPartialError() bool

type ListFollowsFollowedListsMaxResults

type ListFollowsFollowedListsMaxResults int

func (ListFollowsFollowedListsMaxResults) String

func (ListFollowsFollowedListsMaxResults) Valid

type ListFollowsFollowedListsParams

type ListFollowsFollowedListsParams struct {

	// Path parameter
	ID string // User ID

	// Query parameters
	MaxResults      ListFollowsFollowedListsMaxResults
	PaginationToken string
	Expansions      fields.ExpansionList
	ListFields      fields.ListFieldList
	UserFields      fields.UserFieldList
	// contains filtered or unexported fields
}

func (*ListFollowsFollowedListsParams) AccessToken

func (p *ListFollowsFollowedListsParams) AccessToken() string

func (*ListFollowsFollowedListsParams) Body

func (*ListFollowsFollowedListsParams) ParameterMap

func (p *ListFollowsFollowedListsParams) ParameterMap() map[string]string

func (*ListFollowsFollowedListsParams) ResolveEndpoint

func (p *ListFollowsFollowedListsParams) ResolveEndpoint(endpointBase string) string

func (*ListFollowsFollowedListsParams) SetAccessToken

func (p *ListFollowsFollowedListsParams) SetAccessToken(token string)

type ListFollowsFollowedListsResponse

type ListFollowsFollowedListsResponse struct {
	Data     []resources.List `json:"data"`
	Includes struct {
		Users []resources.User `json:"users"`
	} `json:"includes"`
	Meta   resources.ListFollowsFollowedListsMeta `json:"meta"`
	Errors []resources.PartialError               `json:"errors"`
}

func (*ListFollowsFollowedListsResponse) HasPartialError

func (r *ListFollowsFollowedListsResponse) HasPartialError() bool

type ListFollowsFollowersMaxResults

type ListFollowsFollowersMaxResults int

func (ListFollowsFollowersMaxResults) String

func (ListFollowsFollowersMaxResults) Valid

type ListFollowsFollowersParams

type ListFollowsFollowersParams struct {

	// Path parameter
	ID string // List ID

	// Query parameters
	MaxResults      ListFollowsFollowersMaxResults
	PaginationToken string
	Expansions      fields.ExpansionList
	TweetFields     fields.TweetFieldList
	UserFields      fields.UserFieldList
	// contains filtered or unexported fields
}

func (*ListFollowsFollowersParams) AccessToken

func (p *ListFollowsFollowersParams) AccessToken() string

func (*ListFollowsFollowersParams) Body

func (*ListFollowsFollowersParams) ParameterMap

func (p *ListFollowsFollowersParams) ParameterMap() map[string]string

func (*ListFollowsFollowersParams) ResolveEndpoint

func (p *ListFollowsFollowersParams) ResolveEndpoint(endpointBase string) string

func (*ListFollowsFollowersParams) SetAccessToken

func (p *ListFollowsFollowersParams) SetAccessToken(token string)

type ListFollowsFollowersResponse

type ListFollowsFollowersResponse struct {
	Data     []resources.User `json:"data"`
	Includes struct {
		Tweets []resources.Tweet `json:"tweets"`
	} `json:"includes"`
	Meta   resources.ListFollowsFollowersMeta `json:"meta"`
	Errors []resources.PartialError           `json:"errors"`
}

func (*ListFollowsFollowersResponse) HasPartialError

func (r *ListFollowsFollowersResponse) HasPartialError() bool

type ListFollowsPostParams

type ListFollowsPostParams struct {

	// Path parameter
	ID string `json:"-"` // User ID

	// JSON body parameter
	ListID *string `json:"list_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFollowsPostParams) AccessToken

func (p *ListFollowsPostParams) AccessToken() string

func (*ListFollowsPostParams) Body

func (p *ListFollowsPostParams) Body() (io.Reader, error)

func (*ListFollowsPostParams) ParameterMap

func (p *ListFollowsPostParams) ParameterMap() map[string]string

func (*ListFollowsPostParams) ResolveEndpoint

func (p *ListFollowsPostParams) ResolveEndpoint(endpointBase string) string

func (*ListFollowsPostParams) SetAccessToken

func (p *ListFollowsPostParams) SetAccessToken(token string)

type ListFollowsPostResponse

type ListFollowsPostResponse struct {
	Data struct {
		Following bool `json:"following"`
	} `json:"data"`
}

func (*ListFollowsPostResponse) HasPartialError

func (r *ListFollowsPostResponse) HasPartialError() bool

type ListLookupIDParams

type ListLookupIDParams struct {

	// Path parameter
	ID string

	// Query parameters
	Expansions fields.ExpansionList
	ListFields fields.ListFieldList
	UserFields fields.UserFieldList
	// contains filtered or unexported fields
}

func (*ListLookupIDParams) AccessToken

func (p *ListLookupIDParams) AccessToken() string

func (*ListLookupIDParams) Body

func (p *ListLookupIDParams) Body() (io.Reader, error)

func (*ListLookupIDParams) ParameterMap

func (p *ListLookupIDParams) ParameterMap() map[string]string

func (*ListLookupIDParams) ResolveEndpoint

func (p *ListLookupIDParams) ResolveEndpoint(endpointBase string) string

func (*ListLookupIDParams) SetAccessToken

func (p *ListLookupIDParams) SetAccessToken(token string)

type ListLookupIDResponse

type ListLookupIDResponse struct {
	Data     resources.List `json:"data"`
	Includes struct {
		Users []resources.User `json:"users"`
	} `json:"includes,omitempty"`
	Errors []resources.PartialError `json:"errors,omitempty"`
}

func (*ListLookupIDResponse) HasPartialError

func (r *ListLookupIDResponse) HasPartialError() bool

type ListLookupOwnedListsMaxResults

type ListLookupOwnedListsMaxResults int

func (ListLookupOwnedListsMaxResults) String

func (ListLookupOwnedListsMaxResults) Valid

type ListLookupOwnedListsParams

type ListLookupOwnedListsParams struct {

	// Path parameter
	ID string // User ID

	// Query parameters
	Expansions      fields.ExpansionList
	ListFields      fields.ListFieldList
	UserFields      fields.UserFieldList
	MaxResults      ListLookupOwnedListsMaxResults
	PaginationToken string
	// contains filtered or unexported fields
}

func (*ListLookupOwnedListsParams) AccessToken

func (p *ListLookupOwnedListsParams) AccessToken() string

func (*ListLookupOwnedListsParams) Body

func (*ListLookupOwnedListsParams) ParameterMap

func (p *ListLookupOwnedListsParams) ParameterMap() map[string]string

func (*ListLookupOwnedListsParams) ResolveEndpoint

func (p *ListLookupOwnedListsParams) ResolveEndpoint(endpointBase string) string

func (*ListLookupOwnedListsParams) SetAccessToken

func (p *ListLookupOwnedListsParams) SetAccessToken(token string)

type ListLookupOwnedListsResponse

type ListLookupOwnedListsResponse struct {
	Data     []resources.List `json:"data"`
	Includes struct {
		Users []resources.User `json:"users"`
	} `json:"includes,omitempty"`
	Meta   resources.ListLookupOwnedListsMeta
	Errors []resources.PartialError `json:"errors,omitempty"`
}

func (*ListLookupOwnedListsResponse) HasPartialError

func (r *ListLookupOwnedListsResponse) HasPartialError() bool

type ListMembersDeleteParams

type ListMembersDeleteParams struct {

	// Path parameter
	ID     string // List ID
	UserID string
	// contains filtered or unexported fields
}

func (*ListMembersDeleteParams) AccessToken

func (p *ListMembersDeleteParams) AccessToken() string

func (*ListMembersDeleteParams) Body

func (p *ListMembersDeleteParams) Body() (io.Reader, error)

func (*ListMembersDeleteParams) ParameterMap

func (p *ListMembersDeleteParams) ParameterMap() map[string]string

func (*ListMembersDeleteParams) ResolveEndpoint

func (p *ListMembersDeleteParams) ResolveEndpoint(endpointBase string) string

func (*ListMembersDeleteParams) SetAccessToken

func (p *ListMembersDeleteParams) SetAccessToken(token string)

type ListMembersDeleteResponse

type ListMembersDeleteResponse struct {
	Data struct {
		IsMember bool `json:"is_member"`
	} `json:"data"`
}

func (*ListMembersDeleteResponse) HasPartialError

func (r *ListMembersDeleteResponse) HasPartialError() bool

type ListMembersGetMaxResults

type ListMembersGetMaxResults int

func (ListMembersGetMaxResults) String

func (m ListMembersGetMaxResults) String() string

func (ListMembersGetMaxResults) Valid

func (m ListMembersGetMaxResults) Valid() bool

type ListMembersGetParams

type ListMembersGetParams struct {

	// Path parameter
	ID string // List ID

	// Query parameters
	Expansions      fields.ExpansionList
	ListFields      fields.ListFieldList
	UserFields      fields.UserFieldList
	MaxResults      ListMembersGetMaxResults
	PaginationToken string
	// contains filtered or unexported fields
}

func (*ListMembersGetParams) AccessToken

func (p *ListMembersGetParams) AccessToken() string

func (*ListMembersGetParams) Body

func (p *ListMembersGetParams) Body() (io.Reader, error)

func (*ListMembersGetParams) ParameterMap

func (p *ListMembersGetParams) ParameterMap() map[string]string

func (*ListMembersGetParams) ResolveEndpoint

func (p *ListMembersGetParams) ResolveEndpoint(endpointBase string) string

func (*ListMembersGetParams) SetAccessToken

func (p *ListMembersGetParams) SetAccessToken(token string)

type ListMembersGetResponse

type ListMembersGetResponse 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 (*ListMembersGetResponse) HasPartialError

func (r *ListMembersGetResponse) HasPartialError() bool

type ListMembersListMembershipsMaxResults

type ListMembersListMembershipsMaxResults int

func (ListMembersListMembershipsMaxResults) String

func (ListMembersListMembershipsMaxResults) Valid

type ListMembersListMembershipsParams

type ListMembersListMembershipsParams struct {

	// Path parameter
	ID string // User ID

	// Query parameters
	MaxResults      ListMembersListMembershipsMaxResults
	PaginationToken string
	Expansions      fields.ExpansionList
	ListFields      fields.ListFieldList
	UserFields      fields.UserFieldList
	// contains filtered or unexported fields
}

func (*ListMembersListMembershipsParams) AccessToken

func (p *ListMembersListMembershipsParams) AccessToken() string

func (*ListMembersListMembershipsParams) Body

func (*ListMembersListMembershipsParams) ParameterMap

func (p *ListMembersListMembershipsParams) ParameterMap() map[string]string

func (*ListMembersListMembershipsParams) ResolveEndpoint

func (p *ListMembersListMembershipsParams) ResolveEndpoint(endpointBase string) string

func (*ListMembersListMembershipsParams) SetAccessToken

func (p *ListMembersListMembershipsParams) SetAccessToken(token string)

type ListMembersListMembershipsResponse

type ListMembersListMembershipsResponse 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 (*ListMembersListMembershipsResponse) HasPartialError

func (r *ListMembersListMembershipsResponse) HasPartialError() bool

type ListMembersPostParams

type ListMembersPostParams struct {

	// Path parameter
	ID string `json:"-"` // List ID

	// JSON body parameter
	UserID *string `json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMembersPostParams) AccessToken

func (p *ListMembersPostParams) AccessToken() string

func (*ListMembersPostParams) Body

func (p *ListMembersPostParams) Body() (io.Reader, error)

func (*ListMembersPostParams) ParameterMap

func (p *ListMembersPostParams) ParameterMap() map[string]string

func (*ListMembersPostParams) ResolveEndpoint

func (p *ListMembersPostParams) ResolveEndpoint(endpointBase string) string

func (*ListMembersPostParams) SetAccessToken

func (p *ListMembersPostParams) SetAccessToken(token string)

type ListMembersPostResponse

type ListMembersPostResponse struct {
	Data struct {
		IsMember bool `json:"is_member"`
	} `json:"data"`
}

func (*ListMembersPostResponse) HasPartialError

func (r *ListMembersPostResponse) HasPartialError() bool

type ListTweetsLookupMaxResults

type ListTweetsLookupMaxResults int

func (ListTweetsLookupMaxResults) String

func (ListTweetsLookupMaxResults) Valid

func (m ListTweetsLookupMaxResults) Valid() bool

type ListTweetsLookupParams

type ListTweetsLookupParams struct {

	// Path parameter
	ID string // List ID

	// Query parameters
	MaxResults      ListTweetsLookupMaxResults
	PaginationToken string
	Expansions      fields.ExpansionList
	TweetFields     fields.TweetFieldList
	UserFields      fields.UserFieldList
	// contains filtered or unexported fields
}

func (*ListTweetsLookupParams) AccessToken

func (p *ListTweetsLookupParams) AccessToken() string

func (*ListTweetsLookupParams) Body

func (p *ListTweetsLookupParams) Body() (io.Reader, error)

func (*ListTweetsLookupParams) ParameterMap

func (p *ListTweetsLookupParams) ParameterMap() map[string]string

func (*ListTweetsLookupParams) ResolveEndpoint

func (p *ListTweetsLookupParams) ResolveEndpoint(endpointBase string) string

func (*ListTweetsLookupParams) SetAccessToken

func (p *ListTweetsLookupParams) SetAccessToken(token string)

type ListTweetsLookupResponse

type ListTweetsLookupResponse struct {
	Data     []resources.Tweet `json:"data"`
	Includes struct {
		Users  []resources.User  `json:"users"`
		Tweets []resources.Tweet `json:"tweets"`
	} `json:"includes"`
	Meta   resources.ListTweetsLookupMeta `json:"meta"`
	Errors []resources.PartialError       `json:"errors"`
}

func (*ListTweetsLookupResponse) HasPartialError

func (r *ListTweetsLookupResponse) HasPartialError() bool

type ManageListsDeleteParams

type ManageListsDeleteParams struct {

	// Path parameter
	ID string // List ID
	// contains filtered or unexported fields
}

func (*ManageListsDeleteParams) AccessToken

func (p *ManageListsDeleteParams) AccessToken() string

func (*ManageListsDeleteParams) Body

func (p *ManageListsDeleteParams) Body() (io.Reader, error)

func (*ManageListsDeleteParams) ParameterMap

func (p *ManageListsDeleteParams) ParameterMap() map[string]string

func (*ManageListsDeleteParams) ResolveEndpoint

func (p *ManageListsDeleteParams) ResolveEndpoint(endpointBase string) string

func (*ManageListsDeleteParams) SetAccessToken

func (p *ManageListsDeleteParams) SetAccessToken(token string)

type ManageListsDeleteResponse

type ManageListsDeleteResponse struct {
	Data struct {
		Deleted bool `json:"deleted"`
	} `json:"data"`
}

func (*ManageListsDeleteResponse) HasPartialError

func (r *ManageListsDeleteResponse) HasPartialError() bool

type ManageListsPostParams

type ManageListsPostParams struct {

	// JSON body parameter
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
	Private     *bool   `json:"private,omitempty"`
	// contains filtered or unexported fields
}

func (*ManageListsPostParams) AccessToken

func (p *ManageListsPostParams) AccessToken() string

func (*ManageListsPostParams) Body

func (p *ManageListsPostParams) Body() (io.Reader, error)

func (*ManageListsPostParams) ParameterMap

func (p *ManageListsPostParams) ParameterMap() map[string]string

func (*ManageListsPostParams) ResolveEndpoint

func (p *ManageListsPostParams) ResolveEndpoint(endpointBase string) string

func (*ManageListsPostParams) SetAccessToken

func (p *ManageListsPostParams) SetAccessToken(token string)

type ManageListsPostResponse

type ManageListsPostResponse struct {
	Data struct {
		ID   string `json:"id"`
		Name string `json:"name"`
	} `json:"data"`
}

func (*ManageListsPostResponse) HasPartialError

func (r *ManageListsPostResponse) HasPartialError() bool

type ManageListsPutParams

type ManageListsPutParams struct {

	// Path parameter
	ID string `json:"-"` // List ID

	// JSON body parameter
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
	Private     *bool   `json:"private,omitempty"`
	// contains filtered or unexported fields
}

func (*ManageListsPutParams) AccessToken

func (p *ManageListsPutParams) AccessToken() string

func (*ManageListsPutParams) Body

func (p *ManageListsPutParams) Body() (io.Reader, error)

func (*ManageListsPutParams) ParameterMap

func (p *ManageListsPutParams) ParameterMap() map[string]string

func (*ManageListsPutParams) ResolveEndpoint

func (p *ManageListsPutParams) ResolveEndpoint(endpointBase string) string

func (*ManageListsPutParams) SetAccessToken

func (p *ManageListsPutParams) SetAccessToken(token string)

type ManageListsPutResponse

type ManageListsPutResponse struct {
	Updated bool `json:"updated"`
}

func (*ManageListsPutResponse) HasPartialError

func (r *ManageListsPutResponse) HasPartialError() bool

type PinnedListsDeleteParams

type PinnedListsDeleteParams struct {

	// Path parameter
	ID     string // User ID
	ListID string
	// contains filtered or unexported fields
}

func (*PinnedListsDeleteParams) AccessToken

func (p *PinnedListsDeleteParams) AccessToken() string

func (*PinnedListsDeleteParams) Body

func (p *PinnedListsDeleteParams) Body() (io.Reader, error)

func (*PinnedListsDeleteParams) ParameterMap

func (p *PinnedListsDeleteParams) ParameterMap() map[string]string

func (*PinnedListsDeleteParams) ResolveEndpoint

func (p *PinnedListsDeleteParams) ResolveEndpoint(endpointBase string) string

func (*PinnedListsDeleteParams) SetAccessToken

func (p *PinnedListsDeleteParams) SetAccessToken(token string)

type PinnedListsDeleteResponse

type PinnedListsDeleteResponse struct {
	Data struct {
		Pinned bool `json:"pinned"`
	} `json:"data"`
}

func (*PinnedListsDeleteResponse) HasPartialError

func (r *PinnedListsDeleteResponse) HasPartialError() bool

type PinnedListsGetParams

type PinnedListsGetParams struct {

	// Path parameter
	ID string // User ID

	// Query parameter
	Expansions fields.ExpansionList
	ListFields fields.ListFieldList
	UserFields fields.UserFieldList
	// contains filtered or unexported fields
}

func (*PinnedListsGetParams) AccessToken

func (p *PinnedListsGetParams) AccessToken() string

func (*PinnedListsGetParams) Body

func (p *PinnedListsGetParams) Body() (io.Reader, error)

func (*PinnedListsGetParams) ParameterMap

func (p *PinnedListsGetParams) ParameterMap() map[string]string

func (*PinnedListsGetParams) ResolveEndpoint

func (p *PinnedListsGetParams) ResolveEndpoint(endpointBase string) string

func (*PinnedListsGetParams) SetAccessToken

func (p *PinnedListsGetParams) SetAccessToken(token string)

type PinnedListsGetResponse

type PinnedListsGetResponse struct {
	Data     []resources.List `json:"data"`
	Includes struct {
		Users []resources.User `json:"users"`
	} `json:"includes"`
}

func (*PinnedListsGetResponse) HasPartialError

func (r *PinnedListsGetResponse) HasPartialError() bool

type PinnedListsPostParams

type PinnedListsPostParams struct {

	// Path parameter
	ID string `json:"-"` // User ID

	// JSON body parameter
	ListID *string `json:"list_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PinnedListsPostParams) AccessToken

func (p *PinnedListsPostParams) AccessToken() string

func (*PinnedListsPostParams) Body

func (p *PinnedListsPostParams) Body() (io.Reader, error)

func (*PinnedListsPostParams) ParameterMap

func (p *PinnedListsPostParams) ParameterMap() map[string]string

func (*PinnedListsPostParams) ResolveEndpoint

func (p *PinnedListsPostParams) ResolveEndpoint(endpointBase string) string

func (*PinnedListsPostParams) SetAccessToken

func (p *PinnedListsPostParams) SetAccessToken(token string)

type PinnedListsPostResponse

type PinnedListsPostResponse struct {
	Data struct {
		Pinned bool `json:"pinned"`
	} `json:"data"`
}

func (*PinnedListsPostResponse) HasPartialError

func (r *PinnedListsPostResponse) HasPartialError() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL