예제 #1
0
파일: Program.cs 프로젝트: slieser/sandbox2
        private static void Authenticate() {
            var twitterClient = new TwitterClient();
            twitterClient.AuthenticateAppViaBrowser();

            Console.Write("Please enter the pin: ");
            var pin = Console.ReadLine();

            var token = twitterClient.CreateTokenFromPin(pin);
            token.WriteToFile(CredentialsFilename);
        }
예제 #2
0
        private static void Authenticate()
        {
            var twitterClient = new TwitterClient();

            twitterClient.AuthenticateAppViaBrowser();
            Console.Write("Please enter the pin:");
            var pin = Console.ReadLine();

            var token = twitterClient.CreateTokenFromPin(pin);

            token.WriteToFile(CredentialsFilename);
        }