Documentation ¶
Index ¶
- Constants
- func BlocksBlockingDelete(ctx context.Context, c *gotwi.GotwiClient, p *types.BlocksBlockingDeleteParams) (*types.BlocksBlockingDeleteResponse, error)
- func BlocksBlockingGet(ctx context.Context, c *gotwi.GotwiClient, p *types.BlocksBlockingGetParams) (*types.BlocksBlockingGetResponse, error)
- func BlocksBlockingPost(ctx context.Context, c *gotwi.GotwiClient, p *types.BlocksBlockingPostParams) (*types.BlocksBlockingPostResponse, error)
- func FollowsFollowers(ctx context.Context, c *gotwi.GotwiClient, p *types.FollowsFollowersParams) (*types.FollowsFollowersResponse, error)
- func FollowsFollowingDelete(ctx context.Context, c *gotwi.GotwiClient, ...) (*types.FollowsFollowingDeleteResponse, error)
- func FollowsFollowingGet(ctx context.Context, c *gotwi.GotwiClient, p *types.FollowsFollowingGetParams) (*types.FollowsFollowingGetResponse, error)
- func FollowsFollowingPost(ctx context.Context, c *gotwi.GotwiClient, p *types.FollowsFollowingPostParams) (*types.FollowsFollowingPostResponse, error)
- func MutesMutingDelete(ctx context.Context, c *gotwi.GotwiClient, p *types.MutesMutingDeleteParams) (*types.MutesMutingDeleteResponse, error)
- func MutesMutingGet(ctx context.Context, c *gotwi.GotwiClient, p *types.MutesMutingGetParams) (*types.MutesMutingGetResponse, error)
- func MutesMutingPost(ctx context.Context, c *gotwi.GotwiClient, p *types.MutesMutingPostParams) (*types.MutesMutingPostResponse, error)
- func UserLookup(ctx context.Context, c *gotwi.GotwiClient, p *types.UserLookupParams) (*types.UserLookupResponse, error)
- func UserLookupBy(ctx context.Context, c *gotwi.GotwiClient, p *types.UserLookupByParams) (*types.UserLookupByResponse, error)
- func UserLookupByUsername(ctx context.Context, c *gotwi.GotwiClient, p *types.UserLookupByUsernameParams) (*types.UserLookupByUsernameResponse, error)
- func UserLookupID(ctx context.Context, c *gotwi.GotwiClient, p *types.UserLookupIDParams) (*types.UserLookupIDResponse, error)
- func UserLookupMe(ctx context.Context, c *gotwi.GotwiClient, p *types.UserLookupMeParams) (*types.UserLookupMeResponse, error)
Constants ¶
const ( BlocksBlockingGetEndpoint = "https://api.twitter.com/2/users/:id/blocking" BlocksBlockingPostEndpoint = "https://api.twitter.com/2/users/:id/blocking" BlocksBlockingDeleteEndpoint = "https://api.twitter.com/2/users/:source_user_id/blocking/:target_user_id" )
const ( FollowsFollowingGetEndpoint = "https://api.twitter.com/2/users/:id/following" FollowsFollowersEndpoint = "https://api.twitter.com/2/users/:id/followers" FollowsFollowingPostEndpoint = "https://api.twitter.com/2/users/:id/following" FollowsFollowingDeleteEndpoint = "https://api.twitter.com/2/users/:source_user_id/following/:target_user_id" )
const ( MutesMutingGetEndpoint = "https://api.twitter.com/2/users/:id/muting" MutesMutingPostEndpoint = "https://api.twitter.com/2/users/:id/muting" MutesMutingDeleteEndpoint = "https://api.twitter.com/2/users/:source_user_id/muting/:target_user_id" )
const ( UserLookupEndpoint = "https://api.twitter.com/2/users" UserLookupIDEndpoint = "https://api.twitter.com/2/users/:id" UserLookupByEndpoint = "https://api.twitter.com/2/users/by" UserLookupByUsernameEndpoint = "https://api.twitter.com/2/users/by/username/:username" UserLookupMeEndpoint = "https://api.twitter.com/2/users/me" )
Variables ¶
This section is empty.
Functions ¶
func BlocksBlockingDelete ¶
func BlocksBlockingDelete(ctx context.Context, c *gotwi.GotwiClient, p *types.BlocksBlockingDeleteParams) (*types.BlocksBlockingDeleteResponse, error)
Allows a user or authenticated user ID to unblock another user. The request succeeds with no action when the user sends a request to a user they're not blocking or have already unblocked. https://developer.twitter.com/en/docs/twitter-api/users/blocks/api-reference/delete-users-user_id-blocking
func BlocksBlockingGet ¶
func BlocksBlockingGet(ctx context.Context, c *gotwi.GotwiClient, p *types.BlocksBlockingGetParams) (*types.BlocksBlockingGetResponse, error)
Returns a list of users who are blocked by the specified user ID. https://developer.twitter.com/en/docs/twitter-api/users/blocks/api-reference/get-users-blocking
func BlocksBlockingPost ¶
func BlocksBlockingPost(ctx context.Context, c *gotwi.GotwiClient, p *types.BlocksBlockingPostParams) (*types.BlocksBlockingPostResponse, error)
Causes the user (in the path) to block the target user. The user (in the path) must match the user context authorizing the request. https://developer.twitter.com/en/docs/twitter-api/users/blocks/api-reference/post-users-user_id-blocking
func FollowsFollowers ¶
func FollowsFollowers(ctx context.Context, c *gotwi.GotwiClient, p *types.FollowsFollowersParams) (*types.FollowsFollowersResponse, 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 FollowsFollowingDelete ¶
func FollowsFollowingDelete(ctx context.Context, c *gotwi.GotwiClient, p *types.FollowsFollowingDeleteParams) (*types.FollowsFollowingDeleteResponse, 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 FollowsFollowingGet ¶
func FollowsFollowingGet(ctx context.Context, c *gotwi.GotwiClient, p *types.FollowsFollowingGetParams) (*types.FollowsFollowingGetResponse, 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
func FollowsFollowingPost ¶
func FollowsFollowingPost(ctx context.Context, c *gotwi.GotwiClient, p *types.FollowsFollowingPostParams) (*types.FollowsFollowingPostResponse, 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 MutesMutingDelete ¶
func MutesMutingDelete(ctx context.Context, c *gotwi.GotwiClient, p *types.MutesMutingDeleteParams) (*types.MutesMutingDeleteResponse, error)
Allows an authenticated user ID to unmute the target user. The request succeeds with no action when the user sends a request to a user they're not muting or have already unmuted. https://developer.twitter.com/en/docs/twitter-api/users/mutes/api-reference/delete-users-user_id-muting
func MutesMutingGet ¶
func MutesMutingGet(ctx context.Context, c *gotwi.GotwiClient, p *types.MutesMutingGetParams) (*types.MutesMutingGetResponse, error)
Returns a list of users who are muted by the specified user ID. https://developer.twitter.com/en/docs/twitter-api/users/mutes/api-reference/get-users-muting
func MutesMutingPost ¶
func MutesMutingPost(ctx context.Context, c *gotwi.GotwiClient, p *types.MutesMutingPostParams) (*types.MutesMutingPostResponse, error)
Allows an authenticated user ID to mute the target user. https://developer.twitter.com/en/docs/twitter-api/users/mutes/api-reference/post-users-user_id-muting
func UserLookup ¶
func UserLookup(ctx context.Context, c *gotwi.GotwiClient, p *types.UserLookupParams) (*types.UserLookupResponse, error)
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 UserLookupBy ¶
func UserLookupBy(ctx context.Context, c *gotwi.GotwiClient, p *types.UserLookupByParams) (*types.UserLookupByResponse, error)
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
func UserLookupByUsername ¶
func UserLookupByUsername(ctx context.Context, c *gotwi.GotwiClient, p *types.UserLookupByUsernameParams) (*types.UserLookupByUsernameResponse, error)
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-username-username
func UserLookupID ¶
func UserLookupID(ctx context.Context, c *gotwi.GotwiClient, p *types.UserLookupIDParams) (*types.UserLookupIDResponse, error)
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 UserLookupMe ¶
func UserLookupMe(ctx context.Context, c *gotwi.GotwiClient, p *types.UserLookupMeParams) (*types.UserLookupMeResponse, error)
Returns information about an authorized user. https://developer.twitter.com/en/docs/twitter-api/users/lookup/api-reference/get-users-me
Types ¶
This section is empty.