我正在尝试将消息发送到组织团队内的频道。我已成功部署应用程序,并获得了身份验证令牌。当我按照此处所述通过 C# 向聊天发送消息时,如下所示:
_token = await _authenticationHelper.GetAuthenticationToken();
AccessToken = _token;
string teamId = "xxx-xxx-xxx-XX-Xxxxx";
string channelId = "...thread.skype";
var val = await HttpPost($"/teams/{teamId}/channels/{channelId}/messages",
"{ \"body\": { \"contentType\": \"html\", \"content\": \"Hello World\" } }", endpoint: "https://graph.microsoft.com/beta");
从 Microsoft Graph 状态中得到一个错误:
System.Exception: {
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"request-id": "44b6397d-aae4-4f60-a2fd-200070c64908",
"date": "2019-04-18T12:30:02"
}
}
}
这个错误不是描述性的,所以我真的不知道出了什么问题。