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

New Post: Exclude retweets and replies

$
0
0
Hello,

There is now way to do that right now, I would advise to simply use the Tweet.IsRetweet property.

FilteredStream : Filters the tweets created on twitter and sends them back to the stream
TrackedStream : Get all the tweets from a stream (requires url) and allow you to track some keywords
SampleStream : Get random 1% of the tweets published on twitter (~4Millions/day)
UserStream : Get all the tweets related with your account.

The last one is interesting, you can in fact use the following method:
var userStream = Stream.CreateUserStream();
userStream.TweetCreatedByFriend += (sender, args) =>
{
    if (!args.Tweet.IsRetweet)
    {
        // Do my code logic
    }
};
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>