Documentation
¶
Index ¶
- func CreateFollowing(ctx context.Context, c *gotwi.Client, p *types.CreateFollowingInput) (*types.CreateFollowingOutput, error)
- func DeleteFollowing(ctx context.Context, c *gotwi.Client, p *types.DeleteFollowingInput) (*types.DeleteFollowingOutput, error)
- func ListFollowers(ctx context.Context, c *gotwi.Client, p *types.ListFollowersInput) (*types.ListFollowersOutput, error)
- func ListFollowings(ctx context.Context, c *gotwi.Client, p *types.ListFollowingsInput) (*types.ListFollowingsOutput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFollowing ¶
func CreateFollowing(ctx context.Context, c *gotwi.Client, p *types.CreateFollowingInput) (*types.CreateFollowingOutput, error)
Allows a user ID to follow another user. If the target user does not have public Tweets, this endpoint will send a follow request. The request succeeds with no action when the authenticated user sends a request to a user they're already following, or if they're sending a follower request to a user that does not have public Tweets. https://developer.twitter.com/en/docs/twitter-api/users/follows/api-reference/post-users-source_user_id-following
func DeleteFollowing ¶
func DeleteFollowing(ctx context.Context, c *gotwi.Client, p *types.DeleteFollowingInput) (*types.DeleteFollowingOutput, error)
Allows a user ID to unfollow another user. The request succeeds with no action when the authenticated user sends a request to a user they're not following or have already unfollowed. https://developer.twitter.com/en/docs/twitter-api/users/follows/api-reference/delete-users-source_id-following
func ListFollowers ¶
func ListFollowers(ctx context.Context, c *gotwi.Client, p *types.ListFollowersInput) (*types.ListFollowersOutput, error)
Returns a list of users who are followers of the specified user ID. https://developer.twitter.com/en/docs/twitter-api/users/follows/api-reference/get-users-id-followers
func ListFollowings ¶
func ListFollowings(ctx context.Context, c *gotwi.Client, p *types.ListFollowingsInput) (*types.ListFollowingsOutput, error)
Returns a list of users the specified user ID is following. https://developer.twitter.com/en/docs/twitter-api/users/follows/api-reference/get-users-id-following
Types ¶
This section is empty.