你好,开发人员,
在这里发布我的问题之前,我尝试了SO的许多答案。
我正在尝试在Microsoft Teams消息卡中使用可操作的卡
如果单击“批准”按钮,则应单击API URL。
在此API URL中,我添加了200 Response
与
'CARD-ACTION-STATUS' => 'Approved',
但是当我单击按钮时,它会显示
Could not complete the requested action. Please try again later.
这是我正在使用的JSON
{
"summary": "Card \"Test card\"",
"themeColor": "0078D7",
"title": "Card created: \"Name of card\"",
"sections": [
{
"activityTitle": "David Claux",
"activitySubtitle": "9/13/2016, 3:34pm",
"activityImage": "https://connectorsdemo.azurewebsites.net/images/MSC12_Oscar_002.jpg",
"facts": [
{
"name": "Board:",
"value": "Testing Board"
}
],
"text": "Lorem ipsum"
}
],
"potentialAction": [
{
"@type": "HttpPOST",
"name": "Approve",
"target": "https://example.com/test-post?ID=7d66186f-ee1a-4612-a4c7-5c2099758db0",
"body": "Test Body",
"headers": [
{
"Content-Type": "application/x-www-form-urlencoded"
}
]
}
]
}
我尝试了很多在线资源,但无法弄清我想念的是什么。 我将通过POSTMAN发布此JSON,一旦完成,我将通过我的Laravel APP发布此JSON
我可以知道我在做什么错吗?