Example #1
0
        static void Main(string[] args)
        {
            string consumerKey       = "g7rkPB5uI2xOqELAhlNrorSU4";
            string consumerKeySecret = "8hOTyS71GrTH9Ool3rXykAJRY5AmgSPiy78b1wYUPcvfIzXeEc";
            string accessTokenSecret = "eAut3eKlWwBB0o1BfTRLaRBfOgXF6WriMKwpkevgf7C2t";
            string accessToken       = "1396065818-9Q6o38qm99WQywFeqrJFTfs7DFAhI4LvjoJvFRk";
            var    twitter           = new TwitterImage(consumerKey, consumerKeySecret, accessToken, accessTokenSecret);

            Console.WriteLine(twitter.PublishToTwitter("New Employee 2! ", @"bill2.jpg"));
            var twitterDirectMessage = new TwitterMessage(consumerKey, consumerKeySecret, accessToken, accessTokenSecret);

            Console.WriteLine(twitterDirectMessage.SendMessage("Hola!", "380889967"));
        }
        static void Main(string[] args)
        {
            string consumerKey       = "CkovShLMNVCY0STsZlcRUFu99";
            string consumerKeySecret = "6rc35cHCyqFQSy4vIIjKiCYu31qqkBBkSS5BRlqeYCt5r7zO5B";
            string accessTokenSecret = "gNytQjJgLvurJekVU0wmBBkrR1Th40sJmTO8JDhiyUkuy";
            string accessToken       = "1396065818-MeBf8ybIXA3FpmldORfBMdmrVJLVgijAXJv3B18";
            var    twitter           = new TwitterImage(consumerKey, consumerKeySecret, accessToken, accessTokenSecret);

            Console.WriteLine(twitter.PublishToTwitter("New Employee 2! ", @"bill2.jpg"));
            var twitterDirectMessage = new TwitterMessage(consumerKey, consumerKeySecret, accessToken, accessTokenSecret);

            Console.WriteLine(twitterDirectMessage.SendMessage("Hola!", "380889967"));
        }