Exemplo n.º 1
0
        private async void button31_Click(object sender, EventArgs e)
        {
            //textbox31
            var feed = await TwitchApi.GetChannelFeed(textBox31.Text);

            foreach (TwitchLib.TwitchAPIClasses.Post post in feed.Posts)
            {
                foreach (TwitchLib.TwitchAPIClasses.Post.Comment comment in post.Comments)
                {
                    MessageBox.Show($"Comment author: {comment.User.Name}\n\nComment: {comment.Body}");
                }
                MessageBox.Show($"Post: {post.Body}");
            }
        }