Hello here,
The fact that your program freezes is normal. When you use the Stream api you need to invoke it in a specific thread.
Of course, you will need to set your credentials as explained by Insafq.
Please let me know if this is of any help.
Regards,
Linvi
The fact that your program freezes is normal. When you use the Stream api you need to invoke it in a specific thread.
var stream = Stream.CreateFilteredStream(); stream.MatchingTweetReceived += (sender, args) => { var tweet = args.Tweet; Console.WriteLine(tweet.Text); }; var thread = new Thread(() => stream.StartStreamMatchingAllConditions()); thread.Start();
Please let me know if this is of any help.
Regards,
Linvi