我们正在尝试application resource type按照此处所述进行创建:https : //github.com/microsoftgraph/microsoft-graph-docs/blob/master/api-reference/beta/resources/application.md
请求:
POST https://graph.microsoft.com/beta/applications
{
"displayName": "MyCoolApp",
"passwordCredentials": [{
"customKeyIdentifier":"ObJix/HDVU+3+hH5RmA+dw==",
"endDateTime":"2018-10-19T17:59:59.6521653Z",
"keyId":"ed087fba-0068-431f-98d7-e6b74dedd931",
"startDateTime":"2016-10-19T17:59:59.6521653Z",
"value":"somepass"
}]
}
Run Code Online (Sandbox Code Playgroud)
结果是:
{
"error": {
"code": "Request_BadRequest",
"message": "The property 'value' does not exist on type 'Microsoft.DirectoryServices.PasswordCredential'. Make sure to only use property names that are defined by the type.",
"innerError": {
"request-id": "038aa3bd-2b99-4329-a2ae-bc11d2f64609",
"date": "2018-02-04T14:23:57"
}
}
}
Run Code Online (Sandbox Code Playgroud)
怎么value不存在?这是passwordCredentials资源的 JSON 表示
{
"customKeyIdentifier": "binary",
"endDate": "String (timestamp)",
"keyId": "guid",
"startDate": "String (timestamp)",
"value": …Run Code Online (Sandbox Code Playgroud) 目标是保存一个频道成员(例如MS团队)之间的所有对话,然后将其发送到另一个频道.
是否可以通过sideloaded bot或其他东西捕获通道成员之间的所有消息?
我使用了文档中的代码:
const logUserConversation = (event) => {
console.log('message: ' + event.text + ', user: ' + event.address.user.name);
};
// Middleware for logging
bot.use({
receive: function (event, next) {
logUserConversation(event);
next();
},
send: function (event, next) {
logUserConversation(event);
next();
}
});
Run Code Online (Sandbox Code Playgroud)
但它只有在你直接@mentioning机器人时触发,如果在渠道成员之间进行对话,则不会采取任何行动.我怀疑它可能是僵尸框架的安全策略,根本不可能......
有什么想法吗?
更新:好的,支持成员告诉我,这样做的能力在路线图上,稍后将使用Graph API提供.