LINQ to Twitter Talks to Laconica

Got to looking at the Laconica API and noticed that they built a Twitter compatible API.  This got me thinking that LINQ to Twitter might work with Laconica.  So, I pointed LINQ to Twitter at http://jtweeter.com and fired it up:

var twitterCtx = new TwitterContext(userName, password, "http://jtweeter.com/api/", "http://search.twitter.com/");

var publicTweets =
    from tweet in twitterCtx.Status
    where tweet.Type == StatusType.Public
    select tweet;

publicTweets.ToList().ForEach(
    tweet => Console.WriteLine(
        "User Name: {0}, Tweet: {1}",
        tweet.User.Name,
        tweet.Text));

And Success!

Published by Joe Mayo

Author and independent software consultant. Specializing in Microsoft .NET technology. #ai #botframework #chatbots

Leave a comment