How to get twitter user timeline in C# using Twitterizer
Solution 1
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)
Solution 2
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;
Comments
-
Adeel almost 2 years
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.
-
Ricky Smith over 14 yearsThe update has been posted (you're the first to be told). Please go download version 1.0.146: code.google.com/p/twitterizer/downloads/list
-
Ricky Smith about 13 yearsYour code is correct, however developer should consider authenticating more often than not. Using OAuth provides 350 requests per hour PER USER, whereas non-authenticated requests are limited to 100 requests per hour PER IP ADDRESS.
-
Ricky Smith about 13 yearsTry this:
TwitterTimeline.UserTimeline(new UserTimelineOptions() { ScreenName = "twitterapi" };