Archive

Archive for January, 2010

Post to Twitter using C#

January 29, 2010 Leave a comment
Simple bit of code, but I was surprised how easy this was:

Using the Yedda Twitter Library

http://devblog.yedda.com/wp-content/uploads/2007/05/yeddatwitter-v01.zip
(Mirror) http://sites.google.com/site/emailtosmsgateway/Home/twitter

  private void button1_Click(object sender, EventArgs e)
        {
            System.Net.ServicePointManager.Expect100Continue = false;
            var t = new Yedda.Twitter();
            string strResult = t.Update("username", "password", "text", Yedda.Twitter.OutputFormatType.XML);
            MessageBox.Show(strResult);
        }

Categories: Uncategorized