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

New Post: [Streaming API] Get Tweets and Replies for the User

$
0
0
This code actually works. Problem was that i originally used StartStreamMatchingAllConditions and should be StartStreamMatchingAnyCondition for my case.

Thanks
            var stream = Stream.CreateFilteredStream();
            stream.AddFollow(759251); // CNN

            stream.MatchingTweetReceived += (sender, args) =>
            {
                var tweet = args.Tweet;

                /// to do something
            };

            stream.StartStreamMatchingAnyCondition();

Viewing all articles
Browse latest Browse all 4126

Trending Articles



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