Very easy to use API!!!
im trying to get streams from the users that i'm following and it working fine, is there a way to exclude or filter out retweets and replies in the stream? just need the tweet from the user, im using filtered stream
also, what are the dfferences between stream types? and which one should I use for the code below?
CreateFilteredStream
CreateTrackedStream
CreateTweetStream
CreateUserStream
im trying to get streams from the users that i'm following and it working fine, is there a way to exclude or filter out retweets and replies in the stream? just need the tweet from the user, im using filtered stream
also, what are the dfferences between stream types? and which one should I use for the code below?
CreateFilteredStream
CreateTrackedStream
CreateTweetStream
CreateUserStream
var user = User.GetLoggedUser();
var frieds = user.GetFriendIds();
var stream = Stream.CreateFilteredStream();
foreach (var fried in frieds)
{
stream.AddFollow(fried);
}
stream.AddFollow(user.Id);
stream.MatchingTweetReceived += (o, s) =>Console.WriteLine(s.Tweet.Creator.Name + ": " + s.Tweet.Text);
stream.StreamStarted += (o, s) => Console.WriteLine("Stream Started: " + DateTime.Now);
stream.StreamStopped += (o, s) => Console.WriteLine("Stream Stopped: " + DateTime.Now);
stream.StartStreamMatchingAnyCondition();
Many Thanks!