示例#1
0
        public async Task SendFeedCardTest()
        {
            var result = await _dingTalkGoClient.SendFeedCardAsync(new FeedCardMessage
            {
                Items =
                {
                    new FeedCardMessage.FeedCardItem("title1",                                                                       "http://bing.com",
                                                     "https://cn.bing.com/az/hprichbg/rb/TeRewaRewa_ZH-CN9356115127_1920x1080.jpg"),
                    new FeedCardMessage.FeedCardItem("title2",                                                                       "http://bing.com",
                                                     "https://cn.bing.com/az/hprichbg/rb/TeRewaRewa_ZH-CN9356115127_1920x1080.jpg")
                }
            });

            Assert.True(result.Success);
        }