Documentation ¶
Index ¶
- Constants
- func FilteredStreamRulesGet(ctx context.Context, c *gotwi.GotwiClient, ...) (*types.FilteredStreamRulesGetResponse, error)
- func HideReplies(ctx context.Context, c *gotwi.GotwiClient, p *types.HideRepliesParams) (*types.HideRepliesResponse, error)
- func ManageTweetsDelete(ctx context.Context, c *gotwi.GotwiClient, p *types.ManageTweetsDeleteParams) (*types.ManageTweetsDeleteResponse, error)
- func ManageTweetsPost(ctx context.Context, c *gotwi.GotwiClient, p *types.ManageTweetsPostParams) (*types.ManageTweetsPostResponse, error)
- func SearchTweetsAll(ctx context.Context, c *gotwi.GotwiClient, p *types.SearchTweetsAllParams) (*types.SearchTweetsAllResponse, error)
- func SearchTweetsRecent(ctx context.Context, c *gotwi.GotwiClient, p *types.SearchTweetsRecentParams) (*types.SearchTweetsRecentResponse, error)
- func TweetCountsAll(ctx context.Context, c *gotwi.GotwiClient, p *types.TweetCountsAllParams) (*types.TweetCountsAllResponse, error)
- func TweetCountsRecent(ctx context.Context, c *gotwi.GotwiClient, p *types.TweetCountsRecentParams) (*types.TweetCountsRecentResponse, error)
- func TweetLikesDelete(ctx context.Context, c *gotwi.GotwiClient, p *types.TweetLikesDeleteParams) (*types.TweetLikesDeleteResponse, error)
- func TweetLikesLikedTweets(ctx context.Context, c *gotwi.GotwiClient, ...) (*types.TweetLikesLikedTweetsResponse, error)
- func TweetLikesLikingUsers(ctx context.Context, c *gotwi.GotwiClient, ...) (*types.TweetLikesLikingUsersResponse, error)
- func TweetLikesPost(ctx context.Context, c *gotwi.GotwiClient, p *types.TweetLikesPostParams) (*types.TweetLikesPostResponse, error)
- func TweetLookup(ctx context.Context, c *gotwi.GotwiClient, p *types.TweetLookupParams) (*types.TweetLookupResponse, error)
- func TweetLookupID(ctx context.Context, c *gotwi.GotwiClient, p *types.TweetLookupIDParams) (*types.TweetLookupIDResponse, error)
- func TweetRetweetsDelete(ctx context.Context, c *gotwi.GotwiClient, p *types.TweetRetweetsDeleteParams) (*types.TweetRetweetsDeleteResponse, error)
- func TweetRetweetsPost(ctx context.Context, c *gotwi.GotwiClient, p *types.TweetRetweetsPostParams) (*types.TweetRetweetsPostResponse, error)
- func TweetRetweetsRetweetedBy(ctx context.Context, c *gotwi.GotwiClient, ...) (*types.TweetRetweetsRetweetedByResponse, error)
- func TweetTimelinesMentions(ctx context.Context, c *gotwi.GotwiClient, ...) (*types.TweetTimelinesMentionsResponse, error)
- func TweetTimelinesTweets(ctx context.Context, c *gotwi.GotwiClient, p *types.TweetTimelinesTweetsParams) (*types.TweetTimelinesTweetsResponse, error)
Constants ¶
const ( TweetLikesLikingUsersEndpoint = "https://api.twitter.com/2/tweets/:id/liking_users" TweetLikesLikedTweetsEndpoint = "https://api.twitter.com/2/users/:id/liked_tweets" TweetLikesPostEndpoint = "https://api.twitter.com/2/users/:id/likes" TweetLikesDeleteEndpoint = "https://api.twitter.com/2/users/:id/likes/:tweet_id" )
const ( ManageTweetsPostEndpoint = "https://api.twitter.com/2/tweets" ManageTweetsDeleteEndpoint = "https://api.twitter.com/2/tweets/:id" )
const ( TweetRetweetsRetweetedByEndpoint = "https://api.twitter.com/2/tweets/:id/retweeted_by" TweetRetweetsPostEndpoint = "https://api.twitter.com/2/users/:id/retweets" TweetRetweetsDeleteEndpoint = "https://api.twitter.com/2/users/:id/retweets/:source_tweet_id" )
const ( SearchTweetsRecentEndpoint = "https://api.twitter.com/2/tweets/search/recent" SearchTweetsAllEndpoint = "https://api.twitter.com/2/tweets/search/all" )
const ( TweetCountsRecentEndpoint = "https://api.twitter.com/2/tweets/counts/recent" TweetCountsAllEndpoint = "https://api.twitter.com/2/tweets/counts/all" )
const ( TweetLookupEndpoint = "https://api.twitter.com/2/tweets" TweetLookupIDEndpoint = "https://api.twitter.com/2/tweets/:id" )
const ( TweetTimelinesTweetsEndpoint = "https://api.twitter.com/2/users/:id/tweets" TweetTimelinesMentionsEndpoint = "https://api.twitter.com/2/users/:id/mentions" )
const FilteredStreamRulesGetEndpoint = "https://api.twitter.com/2/tweets/search/stream/rules"
const HideRepliesEndpoint = "https://api.twitter.com/2/tweets/:id/hidden"
Variables ¶
This section is empty.
Functions ¶
func FilteredStreamRulesGet ¶
func FilteredStreamRulesGet(ctx context.Context, c *gotwi.GotwiClient, p *types.FilteredStreamRulesGetParams) (*types.FilteredStreamRulesGetResponse, error)
Return a list of rules currently active on the streaming endpoint, either as a list or individually. https://developer.twitter.com/en/docs/twitter-api/tweets/filtered-stream/api-reference/get-tweets-search-stream-rules
func HideReplies ¶
func HideReplies(ctx context.Context, c *gotwi.GotwiClient, p *types.HideRepliesParams) (*types.HideRepliesResponse, error)
Hides or unhides a reply to a Tweet. https://developer.twitter.com/en/docs/twitter-api/tweets/hide-replies/api-reference/put-tweets-id-hidden
func ManageTweetsDelete ¶
func ManageTweetsDelete(ctx context.Context, c *gotwi.GotwiClient, p *types.ManageTweetsDeleteParams) (*types.ManageTweetsDeleteResponse, error)
Allows a user or authenticated user ID to delete a Tweet. https://developer.twitter.com/en/docs/twitter-api/tweets/manage-tweets/api-reference/delete-tweets-id
func ManageTweetsPost ¶
func ManageTweetsPost(ctx context.Context, c *gotwi.GotwiClient, p *types.ManageTweetsPostParams) (*types.ManageTweetsPostResponse, error)
Creates a Tweet on behalf of an authenticated user. https://developer.twitter.com/en/docs/twitter-api/tweets/manage-tweets/api-reference/post-tweets
func SearchTweetsAll ¶
func SearchTweetsAll(ctx context.Context, c *gotwi.GotwiClient, p *types.SearchTweetsAllParams) (*types.SearchTweetsAllResponse, error)
This endpoint is only available to those users who have been approved for the Academic Research product track. The full-archive search endpoint returns the complete history of public Tweets matching a search query; since the first Tweet was created March 26, 2006. https://developer.twitter.com/en/docs/twitter-api/tweets/search/api-reference/get-tweets-search-all
func SearchTweetsRecent ¶
func SearchTweetsRecent(ctx context.Context, c *gotwi.GotwiClient, p *types.SearchTweetsRecentParams) (*types.SearchTweetsRecentResponse, error)
The recent search endpoint returns Tweets from the last seven days that match a search query. https://developer.twitter.com/en/docs/twitter-api/tweets/search/api-reference/get-tweets-search-recent
func TweetCountsAll ¶
func TweetCountsAll(ctx context.Context, c *gotwi.GotwiClient, p *types.TweetCountsAllParams) (*types.TweetCountsAllResponse, error)
This endpoint is only available to those users who have been approved for the Academic Research product track. The full-archive search endpoint returns the complete history of public Tweets matching a search query; since the first Tweet was created March 26, 2006. https://developer.twitter.com/en/docs/twitter-api/tweets/counts/api-reference/get-tweets-counts-all
func TweetCountsRecent ¶
func TweetCountsRecent(ctx context.Context, c *gotwi.GotwiClient, p *types.TweetCountsRecentParams) (*types.TweetCountsRecentResponse, error)
The recent Tweet counts endpoint returns count of Tweets from the last seven days that match a search query. https://developer.twitter.com/en/docs/twitter-api/tweets/counts/api-reference/get-tweets-counts-recent
func TweetLikesDelete ¶
func TweetLikesDelete(ctx context.Context, c *gotwi.GotwiClient, p *types.TweetLikesDeleteParams) (*types.TweetLikesDeleteResponse, error)
Allows a user or authenticated user ID to unlike a Tweet. The request succeeds with no action when the user sends
a request to a user they're not liking the Tweet or have already unliked the Tweet.
func TweetLikesLikedTweets ¶
func TweetLikesLikedTweets(ctx context.Context, c *gotwi.GotwiClient, p *types.TweetLikesLikedTweetsParams) (*types.TweetLikesLikedTweetsResponse, error)
Allows you to get information about a user’s liked Tweets. The Tweets returned by this endpoint count towards the Project-level Tweet cap. https://developer.twitter.com/en/docs/twitter-api/tweets/likes/api-reference/get-users-id-liked_tweets
func TweetLikesLikingUsers ¶
func TweetLikesLikingUsers(ctx context.Context, c *gotwi.GotwiClient, p *types.TweetLikesLikingUsersParams) (*types.TweetLikesLikingUsersResponse, error)
Allows you to get information about a Tweet’s liking users. You will receive the most recent 100 users who liked the specified Tweet. https://developer.twitter.com/en/docs/twitter-api/tweets/likes/api-reference/get-tweets-id-liking_users
func TweetLikesPost ¶
func TweetLikesPost(ctx context.Context, c *gotwi.GotwiClient, p *types.TweetLikesPostParams) (*types.TweetLikesPostResponse, error)
Causes the user ID identified in the path parameter to Like the target Tweet. https://developer.twitter.com/en/docs/twitter-api/tweets/likes/api-reference/post-users-id-likes
func TweetLookup ¶
func TweetLookup(ctx context.Context, c *gotwi.GotwiClient, p *types.TweetLookupParams) (*types.TweetLookupResponse, error)
Returns a variety of information about the Tweet specified by the requested ID or list of IDs. https://developer.twitter.com/en/docs/twitter-api/tweets/lookup/api-reference/get-tweets
func TweetLookupID ¶
func TweetLookupID(ctx context.Context, c *gotwi.GotwiClient, p *types.TweetLookupIDParams) (*types.TweetLookupIDResponse, error)
Returns a variety of information about a single Tweet specified by the requested ID. https://developer.twitter.com/en/docs/twitter-api/tweets/lookup/api-reference/get-tweets-id
func TweetRetweetsDelete ¶
func TweetRetweetsDelete(ctx context.Context, c *gotwi.GotwiClient, p *types.TweetRetweetsDeleteParams) (*types.TweetRetweetsDeleteResponse, error)
Allows a user or authenticated user ID to remove the Retweet of a Tweet. The request succeeds with no action when the user sends a request to a user they're not Retweeting the Tweet or have already removed the Retweet of. https://developer.twitter.com/en/docs/twitter-api/tweets/retweets/api-reference/delete-users-id-retweets-tweet_id
func TweetRetweetsPost ¶
func TweetRetweetsPost(ctx context.Context, c *gotwi.GotwiClient, p *types.TweetRetweetsPostParams) (*types.TweetRetweetsPostResponse, error)
Causes the user ID identified in the path parameter to Retweet the target Tweet. https://developer.twitter.com/en/docs/twitter-api/tweets/retweets/api-reference/post-users-id-retweets
func TweetRetweetsRetweetedBy ¶
func TweetRetweetsRetweetedBy(ctx context.Context, c *gotwi.GotwiClient, p *types.TweetRetweetsRetweetedByParams) (*types.TweetRetweetsRetweetedByResponse, error)
Allows you to get information about who has Retweeted a Tweet. https://developer.twitter.com/en/docs/twitter-api/tweets/retweets/api-reference/get-tweets-id-retweeted_by
func TweetTimelinesMentions ¶
func TweetTimelinesMentions(ctx context.Context, c *gotwi.GotwiClient, p *types.TweetTimelinesMentionsParams) (*types.TweetTimelinesMentionsResponse, error)
Returns Tweets mentioning a single user specified by the requested user ID. By default, the most recent ten Tweets are returned per request. Using pagination, up to the most recent 800 Tweets can be retrieved. The Tweets returned by this endpoint count towards the Project-level Tweet cap. https://developer.twitter.com/en/docs/twitter-api/tweets/timelines/api-reference/get-users-id-mentions
func TweetTimelinesTweets ¶
func TweetTimelinesTweets(ctx context.Context, c *gotwi.GotwiClient, p *types.TweetTimelinesTweetsParams) (*types.TweetTimelinesTweetsResponse, error)
Returns Tweets composed by a single user, specified by the requested user ID. By default, the most recent ten Tweets are returned per request. Using pagination, the most recent 3,200 Tweets can be retrieved. The Tweets returned by this endpoint count towards the Project-level Tweet cap. https://developer.twitter.com/en/docs/twitter-api/tweets/timelines/api-reference/get-users-id-tweets
Types ¶
This section is empty.