HowTo: Tweet with C#
Twitter is the internet Microblogging Service – this is my acc BTW. Twitter has an API since the beginning (and IMHO is this one big reason why twitter is so successful). The Twitter API is REST based and so you can easily create Twitter-Clients with .NET. If you don´t want to create the HTTP basic stuff, check out existing libraries, like Tweetsharp.
Twitter API
You can find the Twitter API docs here and a good overview here.
Twittern via C# – "low level"
You can use HttpRequest & HttpResponse objects to use twitter: Sample here.
C# APIs for Twitter
If you don´t want do deal with the low level things, then you should look at these C# APIs
One example: Tweetsharp
Tweetsharp is a really cool, fluent interface for accessing Twitter, Url-Shorting-Services, Twitpic and so on. Here I create a simple update on twitter:
class Program
{
static void Main(string[] args)
{
var twitter = FluentTwitter.CreateRequest()
.AuthenticateAs("USERNAME", "PASSWORD")
.Statuses().Update("testing, one, two, three!")
.AsJson();
var response = twitter.Request();
}
}
Look at the Google Code wiki or on the homepage for more information.
Authorization
If you use a 3rd Party Twitter Client (like Tweetdeck) you have to type in your credentials to get access to your Twitter-Data. This is from a security point of view not very smart. That´s why Twitter enabled OAuth authorization, which is also provided by Tweetsharp (look here & here).
Sample
You can find a nice WPF Twitter Client on Codeplex.


Luc
April 24, 2009
Have you heard of messagepub? We provide an API to let you easily send messages on Twitter, SMS, Email, Phone, AIM, and Google Chat. We just released a C# library so if you are a C# developer, you can start sending multi-channel messages using a single API.
In the following blog post, there is a demo showing how to use C# to interact with our API:
http://blog.messagepub.com/2009/04/24/new-c-helper-library/
Mykie
September 14, 2009
Hi
I’m a newbie in developing twitter. how can i use my website act like a user in twiiter and allow other user follow me then the RSS on my website can automatically send the tweet updates to my followers. I really need help Thanks a lot.
Pokemon
January 22, 2011
This does not work anymore. can you update ?
geekrax
October 13, 2011
TweetSharp is no more active..
Please refer twitter’s documentation for development..