예제 #1
0
        public async Task ViewPublishWorks()
        {
            var response = await SlackClient.ViewPublish(new ViewPublishRequest("U0EBWMGG4")
            {
                View = new View
                {
                    Type   = PublishViewConstants.Home,
                    Blocks = new IBlock[]
                    {
                        new Block
                        {
                            type = BlockTypes.Section,
                            text = new Text
                            {
                                text = "This is some other text"
                            }
                        }
                    }
                }
            });

            Assert.True(response.Ok);
        }