Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6812437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:26:56+00:00 2026-05-26T20:26:56+00:00

I want to use twitter streaming API in my WPF application, I am able

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:26:56+00:00Added an answer on May 26, 2026 at 8:26 pm

    Reading from the Twitter stream is pretty easy. You just make a request, get the response stream, and start reading. For example:

    HttpWebRequest request = (HttpWebRequest)WebRequest.Create(twitter_search_url);
    // this uses password authentication. Change for OAuth
    request.Credentials = new NetworkCredential(TwitterUser, TwitterPassword);
    request.KeepAlive = true;
    request.UserAgent = user_agent_string;
    HttpWebResponse response;
    try
    {
        response = (HttpWebResponse)request.GetResponse();
        var reader = new StreamReader(response.GetResponseStream());
        string line;
        while ((line = reader.ReadLine()) != null)
        {
            // line contains the tweet.
            // parse with a JSON reader
        }
        // end of stream
     }
     catch (... handle exceptions here)
     {
     }
     finally
     {
         response.Close();
     }
    

    The response stream is essentially infinite, so you’ll be stuck in that ReadLine loop 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 Shutdown event so I can exit it cleanly, but the mechanics of reading the Twitter stream are identical.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use Twitter OAuth in my flex 4 web application and post
I want to use Twitter's Streaming API to collect all of the tweets of
I want to use twitter web service in my silverlight application but don't know
I want to get an access_token according to this documentation http://dev.twitter.com/doc/post/oauth/request_token . I use
Basically I want to use the Twitter Users Lookup (REST API) method, this: http://apiwiki.twitter.com/w/page/24142947/Twitter-REST-API-Method:-users-lookup
I want use php curl with oauth to get the JSON data from twitter
So I want to package up a really simple and easy-to-use Twitter API that
I want to use Twitter API which is available in iOS5. And I'm successfully
I want to use Twitter framework for iOS 5, but be able to run
I am attempting to access the twitter streaming api, however I want to limit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.