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

New Post: How do you stream only followed users

$
0
0
Hi,

You need to use the UserStream. The goal of the userstream is to receive all the events related with an account.
When a follower post a tweet for example the information will be received by the userstream.

Tweetinvi 0.9.0.0
var userStream = Stream.CreateUserStream();
userStream.TweetCreatedByAnyoneButMe += (sender, args) =>
{
      Console.WriteLine("Tweet created by {0}", args.Tweet.Creator.Name);
};
userStream.StartStream();
Tweetinvi 0.8.3.23
IUserStream userStream = new UserStream();
us.TweetCreatedByAnyoneButMe += (sender, args) =>
{
       Console.WriteLine("Tweet created by {0}!", args.Value.Creator.Name);
};
userStream.StartStream(token);
Hope this helps.
Regards,
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>