Ejemplo n.º 1
0
        public void threadRun()
        {
            TwitterHTTP twitterRequest = new TwitterHTTP(this.proxyhost, this.proxyport, this.proxyusername, this.proxypassword);

            this.tweet = this.tweet.Replace("{tweetUsername}", this.statusUsername);
            this.tweet = this.tweet.Replace("{random}", Helpers.RandomString(4));
            this.tweet = this.tweet.Replace("{tweet}", this.statusUpdate);

            this.tweet = Helpers.Spintax(this.tweet);

            bool success = twitterRequest.doLogin(this.username, this.password);
            if (success) success = twitterRequest.postTweet(this.tweet, this.statusTweetId);
            if (!success)
            {
                Console.WriteLine("An error occurred posting. check httpSessionLog.txt");
            }
            Console.WriteLine("done.\n");
        }
Ejemplo n.º 2
0
        protected void setup()
        {
            this.twitterRequest = new TwitterHTTP(this.proxyhost, this.proxyport, this.proxyusername, this.proxypassword);

            return;
        }