Documentation ¶
Index ¶
- func CreateRules(ctx context.Context, c *gotwi.Client, p *types.CreateRulesInput) (*types.CreateRulesOutput, error)
- func DeleteRules(ctx context.Context, c *gotwi.Client, p *types.DeleteRulesInput) (*types.DeleteRulesOutput, error)
- func ListRules(ctx context.Context, c *gotwi.Client, p *types.ListRulesInput) (*types.ListRulesOutput, error)
- func SearchStream(ctx context.Context, c *gotwi.Client, p *types.SearchStreamInput) (*gotwi.StreamClient[*types.SearchStreamOutput], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRules ¶
func CreateRules(ctx context.Context, c *gotwi.Client, p *types.CreateRulesInput) (*types.CreateRulesOutput, error)
Add rules to your stream. https://developer.twitter.com/en/docs/twitter-api/tweets/filtered-stream/api-reference/post-tweets-search-stream-rules
func DeleteRules ¶
func DeleteRules(ctx context.Context, c *gotwi.Client, p *types.DeleteRulesInput) (*types.DeleteRulesOutput, error)
Delete rules to your stream. https://developer.twitter.com/en/docs/twitter-api/tweets/filtered-stream/api-reference/post-tweets-search-stream-rules
func ListRules ¶
func ListRules(ctx context.Context, c *gotwi.Client, p *types.ListRulesInput) (*types.ListRulesOutput, 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 SearchStream ¶
func SearchStream(ctx context.Context, c *gotwi.Client, p *types.SearchStreamInput) (*gotwi.StreamClient[*types.SearchStreamOutput], error)
Streams Tweets in real-time that match the rules that you added to the stream using the POST /tweets/search/stream/rules endpoint. If you haven't added any rules to your stream, you will not receive any Tweets. https://developer.twitter.com/en/docs/twitter-api/tweets/filtered-stream/api-reference/get-tweets-search-stream
Types ¶
This section is empty.