This project has moved and is read-only. For the latest updates, please go here.

Stream User Messages

Return a single user's messages as a stream.

Type: UserStreamType.User
Name Purpose Type Required
Delimited Tweets are delimited in the stream string no
Locations Include tweets within specified bounding box string no
Replies Return additional replies string no
StallWarnings Whether stall warnings should be delivered bool no
Track Include tweets matching comma-separated list of keywords string no

Return Type: JSON string. Note: azyobuzin has created UserStreamsParser for LinqToTwitter
v3.0 Example:
            Console.WriteLine("\nStreamed Content: \n");
            int count = 0;

                (from strm in twitterCtx.Streaming
                 where strm.Type == StreamingType.User
                 select strm)
                .StartAsync(async strm =>
                    string message = 
                        string.IsNullOrEmpty(strm.Content) ? 
                            "Keep-Alive" : strm.Content;
                        (count + 1).ToString() + 
                        ". " + DateTime.Now + 
                        ": " + message + "\n");

                    if (count++ == 5)
v2.1 Example:
            Console.WriteLine("\nStreamed Content: \n");
            int count = 0;

            // the user stream is for whoever is authenticated
            // via the Authenticator passed to TwitterContext
            (from strm in twitterCtx.UserStream
             where strm.Type == UserStreamType.User
             select strm)
            .StreamingCallback(strm =>
                if (strm.Status == TwitterErrorStatus.RequestProcessingException)

                Console.WriteLine(strm.Content + "\n");

                if (count++ >= 25)

Twitter API: user

Last edited Nov 29, 2013 at 5:06 AM by JoeMayo, version 4