Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdorn authored Jul 5, 2022
1 parent b7778f3 commit da71525
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,13 @@ $rules->deleteMany([
```php
use RWC\TwitterStream\RuleBuilder;

$builder = $client->new()
$rules->new()
->query('php')
->group(fn (RuleBuilder $builder) => $builder->raw('tip')->or->raw('🔥'))
->isRetweets()
->hasImages()
->hasNotLinks();
->hasNotLinks()
->save();

// Produces #php (tip OR 🔥) is:retweet has:images -has:links
```
Expand All @@ -132,7 +133,7 @@ $rules->new()
->query('#php')
->exceptRetweets()
->hasLinks()
->compile()
->save()

// Produces: #php -is:retweet has:links
```
Expand Down

0 comments on commit da71525

Please sign in to comment.