Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Adding keywords to stream

$
0
0
Hi Karl,

Thank you very much for your generous donation. This is much appreciated.

Concerning your issue, you are on the right track, the stream needs to be stopped in order to add a track.
Though you need to understand how the filter string works.

https://dev.twitter.com/streaming/overview/request-parameters#track

To make it simple, when you ask for "lady gaga", you ask for a tweet that contains both "lady" AND"gaga" as 2 separate words.
If you want to use an OR you need to add 2 tracks.
// "lady" AND "gaga"
filteredStream.AddTrack("lady gaga");

// "lady" OR "gaga"
filteredStream.AddTrack("lady");
filteredStream.AddTrack("gaga");
Please let me know if this helps you to solve your problem.
Thanks again for your donation :)
Linvi

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>