6
May

.NET (C# or VB.Net) libraries for Twitter API

   Posted by: Rasik Jain   in C# (C-Sharp)

I was looking for Twitter APIs or Wrapper classes which are built using .NET languages like C# or VB.NET. I have found some very good .NET libraries which are worth checking out them. If you are a .NET developer you can plugin these API libraries directly into your ASP.NET or Windows application without having to re-write everything from scratch in order to interact with twitter.

I have explored following APIs.

TweetSharp API

TweetSharp API is built using the .NET framework 3.0/3.5. It uses most of new features of C# like Linq, Implicit Variables, Extension Methods etc. TweetSharp can be used with silver light. Find more details about TweetSharp at Google Code – TweetSharp

You can interact with twitter as shown the below.

var twitter = FluentTwitter.CreateRequest()
    .AuthenticateAs("UserName", "Password")
    .Statuses().Update("Hello World")
    .AsJson();
 
var response = twitter.Request();

Twitterizer

Twitterizer is another .NET library which is promising. Already there are applications built using twitterizer. This Library provides simple to use functions and returns the user objects in the form of Collection Objects. Find more details at Google Code – Twitterizer

You can interact with twitter as shown the below.

Twitter tw = new Twitter("UserName", "Password");
 
tw.Status.Update("Hello World");

Yedda Lib

Yedda Lib is built using .NET 2.0 and C#. This is a simple and yet power library to use. When I checked this library last time there was no support for Direct Messages functionality. You can check more details at Yedda

Twitter tw = new Twitter();
 
//Using String object
String jsonFriends = tw.GetFriendsAsJSON("UserName", "Password");
 
//Using XML Object
XmlDocument xmlFriends = tw.GetFriendsAsXML("UserName", "Password");

TwitterVB

TwitterVB is a VB.NET library released as open source under Google Code. TwitterVB includes a working implementation of Twitter’s OAuth authentication system, as well as Basic Authentication. Find more details about TwitterVB at Google Code – TwitterVB

Dim tw As New TwitterVB.Twitter
tw = New TwitterVB.Twitter
tw.AuthenticateAs("UserName", "Password")
 
' Post the tweet to Twitter
tw.StatusMethods.Update(Me.txtPost.Text)
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • Reddit
  • HackerNews
  • Slashdot
  • StumbleUpon
  • TwitThis
  • Yahoo! Buzz
  • Tumblr
  • Share/Bookmark

Tags: , , , ,

This entry was posted on Wednesday, May 6th, 2009 at 5:40 PM and is filed under C# (C-Sharp). You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

9 comments so far

 1 

how to remove follower,following(friend) of twitter user ..
Is there any Api provide this method..

May 20th, 2009 at 2:35 AM
 2 

Sandeep,

I hope you can look at Friendships Destroy method to achieve your task.

May 24th, 2009 at 5:36 PM
 3 

thats great that you are talking about the twitter api,a good example of searching with the twitter api is on twiogle.com because you can search on twitter and google at the same time.

May 26th, 2009 at 10:44 PM
 4 

I see the link it helpful

May 28th, 2009 at 7:59 AM
 5 

Is there way to get Twitter User status by giving only name (not password.)

May 28th, 2009 at 8:02 AM
Derek
 6 

Hi

Is there a way to upload images to twitter via VB.Net? I have an app which has many images and wish to twitter some of them..

July 20th, 2009 at 9:40 AM
 7 

I have written a Twitter library in Visual Basic.NET and made it available as open source. You can check it out at http://code.google.com/p/twittervb

It includes a working implementation of OAuth.

August 22nd, 2009 at 9:06 AM
 8 

Hi Duane,

Thanks for new VB.NET library for Twitter. Please check the updated post which contains updated information about TwitterVB.

August 22nd, 2009 at 10:44 PM
 9 

Hi Derek,

I am not sure if I understood your problem statement correctly. Are you referring to upload the background image for your twitter profile OR you want to upload mulitple pictures just like what flickr or facebook does? Can you please elaborate?

August 22nd, 2009 at 10:48 PM

Leave a reply

Name (*)
Mail (will not be published) (*)
URI
Comment