Thursday, January 5, 2012

How to get Twitter ID

Before I start I wish you all a very happy new year 2012.It took long time after my last since I got new job and many changes happened in recent months.

I was learning WPF(Windows Presentation Foundation) and I tried to create RSS Feed reader.I tried to get twitter feeds from my twitter account and I searched in google and I found a code but it needed twitter id for that.I found it can be also replace by username.But this code is also useful.

I open http://api.twitter.com/users/show/rasikalb.json {this is for me common url http://api.twitter.com/users/show/[replace username].json}url and it shows some useful json code that we can get many twitter account details.last line contains  twitter id.

image

We can access our twitter feed from http://twitter.com/statuses/user_timeline/[userId or username].rss it shows as follows.Using this rss file we can read tweets.

image

Hope to post about SQL, C# useful tips in future.Until next post cheers ..!!!