How to get twitter user timeline in C# using Twitterizer
Tagged:
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 |
|
|
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)
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 |
|
|
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?
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()
...
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 ...
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(
...
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!
...
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"];
...
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. ...
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 ...
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. ...
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
...