-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide support for filtered streams #80
Comments
Filtered streams are supported, see Readme https://github.com/HunterLarco/twitter-v2#streaming-api. However, twitter-v2 does not manage the filter rules – is that what you mean? Given that rules are independent of an active stream (i.e. they persist even if there is no active stream and they can be modified while the stream is running) it does not seem useful to include them as a property of the stream. However, writing your own utility function to set and update rules is rather simple, given that it only takes a simple post request:
(Example taken from https://developer.twitter.com/en/docs/twitter-api/tweets/filtered-stream/quick-start) |
I was also stuck. Turns out you just use client.post() to add the filters as per official the docs. Check out code sample here: #82 |
Try:
You should see
Then you can get your rules:
or remove them
|
Not sure if this is already implemented, but adding support for creating filtered streams with rules will be great.
The text was updated successfully, but these errors were encountered: