How to get both user tweet and retweet ?

Feb 14, 2013 at 8:55 PM
Hi,

I would like to get the result of those two queries but get it by using only one single query:
            var twitterCtx = new TwitterContext(auth);

            var users =
                from tweet in twitterCtx.Status
                where tweet.Type == StatusType.RetweetedByMe
                select tweet;

            var user = users.ToList();
and
            var twitterCtx = new TwitterContext(auth);

            var users =
                from tweet in twitterCtx.Status
                where tweet.Type == StatusType.User
                select tweet;

            var user = users.ToList();
Thanks
Coordinator
Feb 14, 2013 at 11:01 PM
Hi,

You can reuse the instance of TwitterContext, but you can't combine the queries.

Joe
Feb 15, 2013 at 1:41 PM
Hi Joe,

So if I want to do something like the user widget on the Twitter webpage, I have to merge the results of the 2 queries above. There is no query that does the same thing as to get a user Tweets and ReTweets ?

Thanks again

Olivier
Coordinator
Feb 15, 2013 at 4:06 PM
Hi Oliver,

I see what you're looking for. Does the Status/Home query work for you?

@JoeMayo