Gotshoo? - You're somewhat daily dose of Shoo.

DSC03197

Welcome to Gotshoo?, proudly serving the inter-tubes since 2000. Gotshoo? is the personal of Chris Scheufele, that's me. I live in Springfield, Illinois with my wife and two dogs, Buddy and Clancy. I work during the day as an IT consultant and play at night with a freelance company called After Hours Development, and put together cool projects like Spfldbloggers.com


When I am not tinkering with computers and code, I am taking pictures trying to keep up with my daily photo, or riding my bike, or playing with the dogs.

Return to blog.

Twitter from the command line.

2 Comments »
shoo | December 29th, 2009

I’ve been playing around with a open source .Net Twitter project appropriately named TwitterVB. It’s a .Net library that you import into your .Net application and start sending status updates, pull twitter mentions, trending topics… just about anything you’d want to do with Twitter.

TwitterVB is one of the better libraries compared to others listed on the Twitter API Wiki page: http://apiwiki.twitter.com/Libraries

Note: Because it’s .Net, you can bring this library into any .Net language. I built a quick command line app in C#.

twitterconsole

Example code:

static void Main(string[] args)
{

var tw = new TwitterVB2.TwitterAPI();
tw.AuthenticateAs(“twitteraccount”, “twitterpassword”);
string text = “”;

while (!text.Equals(“x”))
{
Console.Clear();
Console.Write(“Send Tweet: “);
text = Console.ReadLine().ToString();
if(!text.Equals(“x”)){
tw.Update(text);
Console.WriteLine(“Tweet Sent – Enter to continue”);
Console.ReadLine();
}
}

}