【发布时间】:2017-12-12 12:53:01
【问题描述】:
尝试创建 Skype 机器人,但我遇到了问题。请帮我。 我使用 PHP,所以我使用 REST(不是 NodeJS 或 C# SDK)。 任务:我必须将我网站上的 html 表单中的数据发送到 Skype(所以我不必回复消息,只需发送)。 好吧,我已经在 Microsoft Bot Framework 中成功创建了一个机器人。 然后我成功收到了一个access_token。 然后他们在文档中说我必须发送 POST 到:
/v3/conversations/{conversationId}/activities
根据https://docs.microsoft.com/en-us/bot-framework/rest-api/bot-framework-rest-connector-send-and-receive-messages,我必须使用这样的 JSON 向/v3/conversations 发送请求:
{
"bot": {
"id": "12345678",
"name": "bot's name"
},
"isGroup": false,
"members": [
{
"id": "1234abcd",
"name": "recipient's name"
}
],
"topicName": "News Alert"
}
但是什么是“会员的 id 和会员的名字”呢?
【问题讨论】:
-
“我必须将我网站上的 html 表单中的数据发送到 Skype” - 使用起来不是更容易吗? dev.skype.com/webcontrol?
标签: rest skype direct-line-botframework skype-bots microsoft-skype-bot