users

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: 3 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
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"
)
View Source
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"
)
View Source
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

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 BlocksBlockingPost

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 FollowsFollowingDelete

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 FollowsFollowingPost

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

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 UserLookup

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

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 UserLookupID

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

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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