我正试图通过将演员传递给团队中的卡片中的HttpPOST动作来解决任务.因此,一旦用户点击了操作,我就可以使用输入来获取用户输入并以这种方式将其添加到POST操作中:
{
"@type": "ActionCard",
"name": "Comment",
"inputs": [
{
"@type": "TextInput",
"id": "comment",
"isMultiline": true,
"title": "Input's title property"
}
],
"actions": [
{
"@type": "HttpPOST",
"name": "Action's name prop.",
"target": "https://yammer.com/comment?postId=123",
"body": "comment={{comment.value}}"
}
]
}
Run Code Online (Sandbox Code Playgroud)
但我想添加一些用户信息(名称,电子邮件,等等).
附注:
1.连接器在包含演员名称的HttpPOST操作成功响应后将答复发布到卡上(因此看起来很有希望):
2.连接器传递access_token给HttpPOST API端点,该端点包含一些信息(sub,tid).但是没有任何范围,所以即使我发现userprofileSTS 的正确端点我也无法调用它

3.基于样本我能够使用ActionableMessageTokenValidator但结果没用:

- sub只显示相同(我在令牌中看到)
相关问题:https://github.com/OfficeDev/outlook-actionable-messages-csharp-token-validation/issues/9
websocket office365connectors microsoft-teams microsoft-flow