Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdorn committed Jul 5, 2022
1 parent b425ee2 commit b7778f3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ $connection = new Connection(
);
$rule = new RuleManager($connection);

$rule->new('cat_filter_1')
$rule->new(tag: 'cat_filter_1')
->query('cats')
->hasImages()
->andHasGeo()
->save()

$twitterStream
->backfill(2) // for "academic research" accounts only
Expand Down Expand Up @@ -112,7 +113,8 @@ $rules->deleteMany([
```php
use RWC\TwitterStream\RuleBuilder;

$builder = $client->query('php')
$builder = $client->new()
->query('php')
->group(fn (RuleBuilder $builder) => $builder->raw('tip')->or->raw('🔥'))
->isRetweets()
->hasImages()
Expand All @@ -126,7 +128,8 @@ You can negate an operator using the magic property `not`.
```php
use RWC\TwitterStream\RuleBuilder;

$rules->query('#php')
$rules->new()
->query('#php')
->exceptRetweets()
->hasLinks()
->compile()
Expand Down

0 comments on commit b7778f3

Please sign in to comment.