Documentation ¶
Index ¶
- func Get(ctx context.Context, c *gotwi.Client, p *types.GetInput) (*types.GetOutput, error)
- func GetByUsername(ctx context.Context, c *gotwi.Client, p *types.GetByUsernameInput) (*types.GetByUsernameOutput, error)
- func GetMe(ctx context.Context, c *gotwi.Client, p *types.GetMeInput) (*types.GetMeOutput, error)
- func List(ctx context.Context, c *gotwi.Client, p *types.ListInput) (*types.ListOutput, error)
- func ListByUsernames(ctx context.Context, c *gotwi.Client, p *types.ListByUsernamesInput) (*types.ListByUsernamesOutput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
GET /2/users/:id Returns a variety of information about a single user specified by the requested ID. https://developer.twitter.com/en/docs/twitter-api/users/lookup/api-reference/get-users-id
func GetByUsername ¶
func GetByUsername(ctx context.Context, c *gotwi.Client, p *types.GetByUsernameInput) (*types.GetByUsernameOutput, error)
GET /2/users/by/username/:username Returns a variety of information about a single user specified by their usernames. https://developer.twitter.com/en/docs/twitter-api/users/lookup/api-reference/get-users-by-username-username
func GetMe ¶
func GetMe(ctx context.Context, c *gotwi.Client, p *types.GetMeInput) (*types.GetMeOutput, error)
GET /2/users/me Returns information about an authorized user. https://developer.twitter.com/en/docs/twitter-api/users/lookup/api-reference/get-users-me
func List ¶
GET /2/users Returns a variety of information about one or more users specified by the requested IDs. https://developer.twitter.com/en/docs/twitter-api/users/lookup/api-reference/get-users
func ListByUsernames ¶
func ListByUsernames(ctx context.Context, c *gotwi.Client, p *types.ListByUsernamesInput) (*types.ListByUsernamesOutput, error)
GET /2/users/by Returns a variety of information about one or more users specified by their usernames. https://developer.twitter.com/en/docs/twitter-api/users/lookup/api-reference/get-users-by
Types ¶
This section is empty.