How to get twitter user timeline in C# using Twitterizer

Tagged:
Freelance Jobs

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.


AdeelH
2010-01-28 10:54:40 Scores:3
It would help if you'd say what you're seeing compared with what you expect to see.
Jon SkeetH
2010-01-28 10:56:23 Scores:0

3 answers

Answer 1
Scores:5

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)

Ricky Smith H
2010-01-28 16:51:32
The update has been posted (you're the first to be told). Please go download version 1.0.146: http://code.google.com/p/twitterizer/downloads/list
Ricky Smith H
2010-01-28 17:17:39 Scores:2
Thanks for the answer
Adeel H
2011-04-06 18:24:03 Scores:0
Answer 2
Scores:1

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;
Tom H
2010-10-06 18:40:39
Your 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 H
2011-03-01 18:16:11 Scores:0
Answer 3
Scores:0

I have to agree with Eric. I only looked at Twitterizer for a few hours, and I have not found one example that shows how to load a user's timeline without authorization.

Will I figure it out eventually? Yeah, I'll have to and I will; but it will take me forever.

The link that Ricky Smith gave (twitterizer.net) doesn't have this kind of simple example. The tutorials available on the internet that I found for twitterizer2, even those are not up-to-date and don't quite work or are missing information.

Ricky, how about being a lifesaver to me and others and showing us how to simply look at a user's public timeline, so there's no need for authorization? Whaddya'say?

yaron H
2010-09-06 20:17:40
Try this: `TwitterTimeline.UserTimeline(new UserTimelineOptions() { ScreenName = "twitterapi" };`
Ricky Smith H
2011-03-01 18:19:29 Scores:0
Share |
View original post at stackoverflow.com

Related topics

How to see if a user is following you on Twitter using C# Twitter API wrapper Tweetsharp

I see there is a API call for Frienships/Show, but I am not sure how to parse the response to get the true/false. Here is my code so far: var twitter = FluentTwitter.CreateRequest() ...

Twitter Streaming API, how to update user timeline

Please forgive this question if its a bit dumb, but I am new to php and slightly lost. I am trying to write a little twitter client, where the user's timeline updates come from the Twitter Streaming API (it is not complete but for the sake of design it will do). The ...

Post twitter update with Twitterizer

I have this piece of code: var settings = WebConfigurationManager.AppSettings; var consumerKey = settings["Twitter.ConsumerKey"]; var consumerSecret = settings["Twitter.ConsumerSecret"]; var authToken = settings["Twitter.OAuthToken"]; var authVerifier = settings["Twitter.OAuthVerifier"]; //var accessToken = GetAccessToken( ...

Authenticate user with twitter login

I wonder of someone know a working sample of logging in using Twitter (OAuth) for .NET I'm currently using this one http://www.voiceoftech.com/swhitley/?p=681 but it only works if I set the callback url to "oob", if I set a real callback url I get "401 unauthorized". Thanks! ...

Error when updating Twitter status with Twitterizer

I have this test application, for twitterizer. var temp = TwitterViewModel.TokenStore; string token = HttpContext.Current.Request.QueryString["oauth_token"]; string verifier = HttpContext.Current.Request.QueryString["oauth_verifier"]; string ConsumerKey = WebConfigurationManager.AppSettings["twitterApiKey"]; string ConsumerSecret = WebConfigurationManager.AppSettings["twitterConsumerSecret"]; ...

Twitter's OAuth is asking my users to copy a PIN at sign in. Can I automate that step with Twitterizer?

I'm using Twitterizer. I got my Consumer key and Secret, and told Twitter my callback URL. However, after the user clicks permit, he gets a PIN to manually copy back to my application. I'm not even sure what I (the developer) am supposed to do with the PIN. ...

Twitter - Multiple User's Posts?

Possible Duplicate: PHP Twitter API - How to pull in multiple users tweets? Is there a way to use some simple http request, like the following: http://api.twitter.com/1/statuses/user_timeline.xml?screen_name=badreligion to get multiple user's timelines in a single request? Something like (pseudocode): http://api.twitter.com/1/statuses/user_timeline.xml?screen_name[]=badreligion,testa,another I've looked through their api a bit, but with ...

Get twitter public timeline, json+C#, no 3rd party libraries

I'm a beginner in C# and JSON, I've only been coding in Java (Basic stuff like reading/writing files, hashmaps, etc., no web development whatsoever, beginner programmer) I'm a student and have been tasked to code a console app in C# which interacts with twitter. For now, I'm stuck with extreme basics. ...

getting demographic information about twitter user

i am creating twitter App in C# in which i will write username and all his demographic data will be shown.I had the twitter REST API but couldn't got any solution.Any one who can assist me in doing this.Thanks ...