Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get twitter user timeline in C# using Twitterizer

i have the following code.

 
Twitter t1 = new Twitter("twitteruser","password");
                TwitterUser user =  t1.User.Show("username");
                if (user != null)
                {
                    TwitterParameters param = new TwitterParameters();
                    param.Add(TwitterParameterNames.UserID, user.ID);
                    TwitterStatusCollection t =t1.Status.UserTimeline(param);                   
                }

In the above code, I want to get user timeline. I am using Twitterizer API. The twitter documentation for getting timeline of user is Here

I have checked the fiddler whats going on. In fiddler the request is :

http://api.twitter.com/1/direct_messages.xml?user_id=xxxxx

while i am expecting

http://twitter.com/statuses/user_timeline.format

Is anything left which i miss.

like image 600
Adeel Avatar asked Jan 18 '26 06:01

Adeel


2 Answers

This is a bug in the latest version of the Twitterizer Library.

I will try to get this corrected and post an update today.

If you run into any other issues, please contact the Twitterizer group directly, on our site (http://www.twitterizer.net/) you'll find links to our mailing list, twitter account, and you can submit but reports directly to our team.

Ricky (Twitterizer founder)

like image 143
Ricky Smith Avatar answered Jan 20 '26 19:01

Ricky Smith


Here's how to get a user's timeline without using oAuth or any authentication, for that matter:

UserTimelineOptions options = new UserTimelineOptions();
options.ScreenName = "SCREENNAME OF TWITTER USER";
TwitterStatusCollection tweets = TwitterTimeline.UserTimeline(options).ResponseObject;
like image 33
Tom Avatar answered Jan 20 '26 21:01

Tom



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!