Example #1
0
        public int OnExecute()
        {
            var token      = new Token(TokenString, TokenType);
            var twitchInfo = new TwitchInformation(token);
            var result     = twitchInfo.IsLiveStreaming(UserNameOrUrl, out var status);

            Console.WriteLine(status);
            return(result == true?0:1);
        }
Example #2
0
        public int OnExecute()
        {
            var twitchInfo = new TwitchInformation(ClientId, ClientSecret);
            var token      = twitchInfo.PublishToken();

            Console.WriteLine($"Token:{token.TokenString}");
            Console.WriteLine($"TokenType:{token.TokenType}");
            Console.WriteLine($"ExpireDate:{token.ExpireDate}");
            return(2);
        }