团队连接器-消息卡中的操作

时间:2019-05-03 16:22:53

标签: webhooks microsoft-teams office365connectors

我目前正在使用一些potentialActions扩展现有的MS Teams Connector。过去,我已经成功使用了openURI操作。 现在,我正在尝试使用“自定义传入Webhook”来收集有关用户与卡进行交互时发送到target的信息的格式/数量的一些信息。

修改05/10:

我现在切换到使用已注册的连接器(fdfa8471-96a7-411a-a6ad-f402709e2165)。留言卡已成功发送到团队聊天并显示已配置的操作。尝试使用该操作时,(在控制台中)收到以下错误:

{  
   "data":{  
      "errorCode":"Forbidden",
      "message":"An unexpected error(Type = Forbidden) occurred. Please try again."
   },
   "status":403,
   "config":{  
      "method":"POST",
      "transformRequest":[  
         null
      ],
      "transformResponse":[  
         null
      ],
      "url":"https://teams.microsoft.com/api/mt/emea/beta/users/connectors/19:a5dd279d9bc744cca4286a6a0fadc975@thread.skype;messageid=1557483063258/1557483063258/executeAction",
      "data":{  
         "inputParameters":[  
            {  
               "id":"comment",
               "value":"pls :)"
            }
         ],
         "actionId":"7d66186f-ee1a-4612-a4c7-5c2099758db9",
         "potentialAction":"{\"@type\":\"HttpPOST\",\"@id\":\"7d66186f-ee1a-4612-a4c7-5c2099758db9\",\"name\":\"OK\",\"target\":\"https://*******.ngrok.io/api/v1/msteams/connectorAction/comment\",\"headers\":[],\"body\":\"comment={{comment.value}}\",\"bodyContentType\":\"\"}",
         "name":"action/connector",
         "integrationId":"gcor97uz3c",
         "meta":"{\"connectorSenderGuid\":\"fdfa8471-96a7-411a-a6ad-f402709e2165\",\"providerAccountUniqueId\":null,\"connectorConfigurationAlternateId\":\"a092b30d74ee436b9409be217b00e6c2\"}",
         "clientInfo":{  
            "locale":"en-gb",
            "country":"gb",
            "platform":"Web",
            "clientVersion":"1415/1.0.0.2019050223"
         }
      },
      "headers":{  
         "X-Skypetoken":"pii",
         "Authorization":"pii",
         "Accept":"application/json, text/plain, */*",
         "Content-Type":"application/json;charset=utf-8",
         "X-RingOverride":"general",
         "x-ms-scenario-id":"1325",
         "x-ms-request-id":"d0be16f6c0e745a5c9d3fd9d3c5d09ec_1326",
         "x-ms-user-type":"user",
         "x-ms-client-type":"web",
         "x-ms-client-env":"msteams-web-prod-euwe-01",
         "x-ms-client-version":"1415/1.0.0.2019050223",
         "x-ms-session-id":"d0be16f6-c0e7-45a5-c9d3-fd9d3c5d09ec"
      },
      "counter":"ext_actionable_card_http_post",
      "decrementNetworkRequests":null,
      "hostName":"teams.microsoft.com"
   },
   "statusText":""
}

操作中设置的target URL与在连接器中注册的URL相匹配。在没有接收到我的隧道的POST的情况下,因此我认为错误在于后端。

能否请您指出一些有关此问题的有用信息?

Gelx

0 个答案:

没有答案