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

New Post: Adding keywords to stream

$
0
0
Yes, I understand that the API works in AND mode. This is not my question. If I create a new stream and
filteredStream.AddTrack("lady gaga");
filteredStream.StartStreamMatchingAllConditions();
It works as expected and tweets start coming in quite quickly since "lady gaga" is a high volume keyword. However, if I I want to stop, add a new keyword and then restart the stream the added keyword does not seem to take effect:
//Add a keyword that won't match anything
filteredStream.AddTrack("gdfkjghsfgdsfg");
filteredStream.StartStreamMatchingAllConditions();

//Then, from a timer event handler,
filteredStream.StopStream();
filteredStream.AddTrack("lady gaga");
filteredStream.StartStreamMatchingAllConditions();
After I restart the stream I will still not get any results.

Viewing all articles
Browse latest Browse all 4126

Trending Articles



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