配置 Microsoft Teams 传入 webhook json 负载

Configure microsoft teams incoming webhook json payload

我正在尝试使用 incoming webhook 连接器设置到 Microsoft 团队频道的传入 Webhook。 我试图从我的平台发送的有效负载看起来像这样并且是 CleverTap 的形式(它失败了所以我试图使用邮递员调试它)。但我收到错误 Summary or Text is required.

{
  "profiles": [
    {
      "email": "jack@gmail.com",
      "identity": "foo",
      "objectId": "-g55b74fb1030740e4a4931910a8abb862",
      "profileData": {
        "Last Score": 308,
        "High Score": 308,
        "Replayed": true
      },
      "name": "Jack"
    }
  ]
}
  1. 我做错了什么?
  2. 我是否需要根据自适应卡片语法更改 JSON 负载,以便团队接受传入的 webhook?如果是这样,我可以在自适应卡 JSON 正文中的何处添加我的自定义负载?
  3. webhook 端点是否有其他身份验证因素(我是否必须将发送 POST 消息的 IP 地址列入白名单)?

要使用传入的 webhook 发送消息,您必须 post 向 webhook URL 发送 JSON 负载。此有效负载应采用 O365 Connector card. Payload of any other format is not acceptable in Teams. Here is an Example Connector card that you can post. You can now also send an Adaptive card using incoming webhook. Please check the docs here.

的形式