コード例 #1
0
 /// <summary>
 /// This Method Will Update Tweets On Twitter
 /// </summary>
 /// <param name="User">Twitter UserName And Password</param>
 /// <param name="StatusText">Status Messages</param>
 /// <returns>Return True If Stuatus Sent SuccessFully</returns>
 public bool UpdateStatus(TwitterUser User, string StatusText)
 {
     Twitter.Core.StatusMethods.Status status = new Twitter.Core.StatusMethods.Status();
     xmlResult = status.UpdateStatus(User, StatusText);
     XmlNodeList xmlNodeList = xmlResult.GetElementsByTagName("id");
     if (xmlNodeList.Count > 0)
     {
         return true;
     }
     return false;
 } 
コード例 #2
0
        public bool UpdateStatus(oAuthTwitter oAuth, string StatusText,string reply)
        {
            try
            {
                Twitter.Core.StatusMethods.Status status = new Twitter.Core.StatusMethods.Status();
                xmlResult = status.UpdateStatus(oAuth, StatusText,reply);
                XmlNodeList xmlNodeList = xmlResult.GetElementsByTagName("id");
                if (xmlNodeList.Count > 0)
                {
                    return true;
                }
            }
            catch (Exception ex)
            {

            }
            return false;
        }