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

New Post: Cashtags and Hashtags with FilteredStream

$
0
0
This is my current solution, but is not ideal. It does work however.
            int tweets = 0;
            var stream = Stream.CreateFilteredStream();
            stream.AddTrack("FB");

            stream.MatchingTweetReceived += (o, args) =>
            {
                string tweet = args.Tweet.Text;
                if (tweet.IndexOf("$FB") != -1)
                {
                    logger.Debug(String.Format("{0}\t{1}", args.Tweet, ++tweets));
                }
            };

            stream.StartStreamMatchingAllConditions();

Viewing all articles
Browse latest Browse all 4126

Trending Articles



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