Twitter API - Sending a Direct Message in C#

I tried writing some code to send a direct message using the Twitter API. It was a FAIL.  I did some searching in google, and found this method below listed in a google group.  I didn't write it, but it works, so enjoy.  I plugged the method into my WCF Service and it just worked.

        public void DMSend(string username, string recipient, string tweet)
            HttpWebRequest req = (HttpWebRequest)WebRequest.Create("" + recipient + "&text=" + tweet);
            req.Method = "POST";
            req.Credentials = new NetworkCredential(username, password);
            req.ContentLength = 0;
            req.ContentType = "application/x-www-form-urlencoded";
            WebResponse response = req.GetResponse();

Original Url:


Comments have been disabled for this content.