Wednesday, January 20, 2010

Accessing Twitter API through C# code

I wanted to share the C# code which i used to access , the Twitter API programmatically .

The Workflow.

1. Twitter exposes almost all its data underneath, through its RESTFul Services

2. The Client using this code  can be a Webclient(asp.net , asp.net mvc etc ) or a Desktop client (Winforms , Console Application etc.)

3. The data being returned from those services are in XML or JSON format.

Code Snippet

image