/// <summary> /// Sends a new direct message to the specified user from the authenticating user. /// </summary> /// <param name="oAuth"></param> /// <param name="textMessage"></param> /// <returns></returns> public JArray Post_Direct_Messages_New(oAuthTwitter oAuth, string textMessage, string userId) { string RequestUrl = Socioboard.Twitter.App.Core.Globals.PostDirectMesagesNewUrl; SortedDictionary <string, string> strdic = new SortedDictionary <string, string>(); // strdic.Add("text", textMessage); // strdic.Add("user_id", userId); var datas = oAuth.SendDirectMessage(Globals.TwitterPostDirectMessageUrl, userId, textMessage, strdic); string response = oAuth.OAuthWebRequest(oAuthTwitter.Method.POST, RequestUrl, strdic); if (!response.StartsWith("[")) { response = "[" + response + "]"; } return(JArray.Parse(response)); }