예제 #1
0
        protected void Button2_Click(object sender, EventArgs e)
        {
            var accessToken = AccessTokenContainer.GetToken(_corpId);

            string[] users = { "xiaobao", "orochi430", "xiaoze" };
            ChatApi.CreateChat(accessToken, "mychart", "测试会话", "orochi430", users);
        }
예제 #2
0
        public void CreateChatTest()
        {
            var accessToken = AccessTokenContainer.GetToken(_corpId, base._corpSecret);

            var result = ChatApi.CreateChat(accessToken, "1", "测试", "005", new[] { "002", "005", "007" });

            Assert.IsTrue(result.errcode == ReturnCode_Work.请求成功);
        }