Download the wrapper from Yedda. Unzip the files and you can play around with the project.
What i do is
- Create a new class name TwitterWrapper in my App_Code
- Copy the code from Twitter.cs and paste in TwitterWrapper.cs
to twitter your message:
string xmlOutput = "";
string TwitterUserName = "username";
string TwitterPassword = "password";
string TwitterMessage = "Hello twitter";
if (TwitterUserName != "" && TwitterPassword != "")
{
try
{
TwitterWrapper twitter = new TwitterWrapper();
xmlOutput = twitter.Update(TwitterUserName, TwitterPassword, TwitterMessage, TwitterWrapper.OutputFormatType.XML);
}
catch (Exception ex)
{ }
finally
{ }
}
9 comments:
Very nicely done!
Thanks for the example. I had some problems with the update throwing a 417 Exception failed error. Check out http://blogs.msdn.com/shitals/archive/2008/12/27/9254245.aspx for a resolution.
gr8 stuff man...
Its a good handy code to start instantly. Good work!
Hi, I have write an Twitter Programming Example, check out this one is more easy and fast as compare to solution provided by Yedda.
http://dotnetguts.blogspot.com/2009/04/twitter-posting-from-aspnet-website.htmlDotNetGuts (DNG)
Hey, thanks for sharing. It's a cool stuff.
Worthless for VB.Net developers... converted code from (horrid) C# and there were errors galore.
is it possible to get all friends followers with this code.....
HI Can any body Give Some Sample C# To Post messages to Twiiter. I am using Yeddas Wrapper it is giving exception as "The remote server returned an error: (417) Expectation Failed."
Thanks in Advance
naidu
Post a Comment