I want to use twitter streaming API in my WPF application, I am able to complete authentication process using OAuth. My problem is I am not aware of the process of fetching tweets from twitter. Can anyone provide me some sample application which can help me understand the proces of fetching and updating tweets.
Thanks.
Reading from the Twitter stream is pretty easy. You just make a request, get the response stream, and start reading. For example:
The response stream is essentially infinite, so you’ll be stuck in that
ReadLineloop forever.I’ve been using a slightly more complete version of the above code for a couple of years without trouble. The production code has better error handling, of course, and the loop checks a
Shutdownevent so I can exit it cleanly, but the mechanics of reading the Twitter stream are identical.