createFilteringRules abstract method

Future<TwitterResponse<List<FilteringRuleData>, FilteringRuleMeta>> createFilteringRules({
  1. required List<FilteringRuleParam> rules,
  2. bool? dryRun,
})

Add rules to your stream.

Once you've added a rule or rules to your stream, you can retrieve all of the Tweets that match these rules by using the connectFilteredStream endpoint.

To learn how to build a rule, please read our guide on building a rule.

Parameters

  • rules: Specifies the rules you want to add.

  • dryRun: Set to true to test a the syntax of your rule without submitting it. This is useful if you want to check the syntax of a rule before removing one or more of your existing rules.

Endpoint Url

Authentication Methods

  • OAuth 2.0 App-only

Rate Limits

  • App rate limit (OAuth 2.0 App Access Token): 450 requests per 15-minute window shared among all users of your app

Reference

Implementation

Future<TwitterResponse<List<FilteringRuleData>, FilteringRuleMeta>>
    createFilteringRules({
  required List<FilteringRuleParam> rules,
  bool? dryRun,
});