NTwitter is a lighwight C# Twitter API encapsulation running under .NET Framework 2.0 as well as under Compact Framework 2.0 and above. It is a port of the popular JTwitter API and makes it easy to write Twitter-enabled applications.
If you already know Twitter and it’s micro-blogging-functionality, the library is pretty easy to use. It enables you, to write your own Twitter client in a just few minutes. I have tested the library with the .NET Framework 3.5 as well as using the Microsoft Compact Framework 3.5. Even though I did not any explicit testing, I would suppose that this library should work under older version of the .NET Framework and .NET Compact Framework too, since it does not use any special .NET classes (the used HttpRequestClass is available even in the first version of the frameworks).
The following sample should clearify how to use the library. If you have any questions, comments or feedback, please don’t hesitate to drop me a line. Further discussions can also be done on http://www.blogmenot.de
// Create new Twitter object
Twitter twitter = new Twitter(“my-user”, “my-password”);
// Check user’s timeline
List<Status> slist = twitter.GetUserTimeline(“winterstein”);
foreach (Status s in slist)
// Get current status
// Update own status
twitter.UpdateStatus(“Playing around with NTwitter. Nice lib.”);
Copyright and License
Porting to .NET was done by Patrick Schidler, original jTwitter source code developed by Daniel Winterstein.
The library itself is released as open-source under the LGPL license. This code comes with no warranty or support. You must let your users know that you are using the NTwitter library, which they can get the source code for. A credit on your home page with a link-back to this page, e.g. built using NTwitter, is the recommended way to do this. Your own code can be licensed commercially and you do not have to release the source code.
You have to pay attention to the fact, that the JSON part of the library is released under the GPL. Anyway, this part was explicity encapsulated by me, so it is very easy to replace with any parser you want (e.g. with the one coming with Micorosft Silverlight).