Exemple #1
0
        public void Send(Twitter message)
        {
            string consumerKey          = "g7rkPB5uI2xOqELAhlNrorSU4";
            string consumerKeySecret    = "8hOTyS71GrTH9Ool3rXykAJRY5AmgSPiy78b1wYUPcvfIzXeEc";
            string accessTokenSecret    = "eAut3eKlWwBB0o1BfTRLaRBfOgXF6WriMKwpkevgf7C2t";
            string accessToken          = "1396065818-9Q6o38qm99WQywFeqrJFTfs7DFAhI4LvjoJvFRk";
            var    twitterDirectMessage = new TwitterMessage(consumerKey, consumerKeySecret, accessToken, accessTokenSecret);

            Console.WriteLine(twitterDirectMessage.SendMessage(message.Text, message.To));
        }
        public void Send(IMessage mensaje)
        {
            string consumerKey          = "CkovShLMNVCY0STsZlcRUFu99";
            string consumerKeySecret    = "6rc35cHCyqFQSy4vIIjKiCYu31qqkBBkSS5BRlqeYCt5r7zO5B";
            string accessTokenSecret    = "gNytQjJgLvurJekVU0wmBBkrR1Th40sJmTO8JDhiyUkuy";
            string accessToken          = "1396065818-MeBf8ybIXA3FpmldORfBMdmrVJLVgijAXJv3B18";
            var    twitterDirectMessage = new TwitterMessage(consumerKey, consumerKeySecret, accessToken, accessTokenSecret);

            Console.WriteLine(twitterDirectMessage.SendMessage(((IMessage)mensaje).Text, ((IMessage)mensaje).To));
        }
Exemple #3
0
        public void Send(Message message)
        {
            var twitterDirectMessage = new TwitterMessage(consumerKey, consumerKeySecret, accessToken, accessTokenSecret);

            Console.WriteLine(twitterDirectMessage.SendMessage(message.Text, message.To));
        }
Exemple #4
0
        public void Send(Message message)
        {
            var twitter = new TwitterMessage(consumerKey, consumerKeySecret, accessToken, accessTokenSecret);

            twitter.SendMessage(message.Text, message.To.TwitterID);
        }
Exemple #5
0
        public void Send(string TwitterFrom, string TwitterTo, string TwitterTextTo)
        {
            var twitterDirectMessage = new TwitterMessage(consumerKey, consumerKeySecret, accessToken, accessTokenSecret);

            Console.WriteLine(twitterDirectMessage.SendMessage(TwitterTextTo, TwitterTo));
        }
 public TwitterChannel(string consumerKey, string consumerKeySecret, string accessToken, string accessTokenSecret)
 {
     twitter = new TwitterMessage(consumerKey, consumerKeySecret, accessToken, accessTokenSecret);
 }