【问题标题】:How to get Microsoft Graph access token using email id in the skype for business bot to add an event to Calendar如何使用 Skype for business bot 中的电子邮件 ID 获取 Microsoft Graph 访问令牌以将事件添加到日历
【发布时间】:2018-11-02 17:30:54
【问题描述】:

在 Skype for Business Bot 中,用户经过预认证,需要获取 Microsoft Graph 访问令牌,以便以编程方式执行 Microsoft Graph 操作(例如向日历添加事件)..

请建议如何将 Microsoft Graph APIs 与 Azure Bot for Skype for business 渠道集成。

我们希望 Skype for Business 机器人能够像 here 中描述的那样预订会议

但团队需要使用 Skype for Business 而不是。但基本上这个代码行会要求用户在这个代码示例中明确 “等待上下文。转发(新 AzureAuthDialog(”

还有另一个示例需要管理员同意才能更新特定用户的日历 斯瓦提

【问题讨论】:

    标签: botframework


    【解决方案1】:

    您不能重复使用预身份验证中的任何内容。与任何其他渠道一样,您必须经过特定的身份验证阶段。

    您在官方存储库中有一个很好的示例来执行此操作,这里:https://github.com/Microsoft/BotBuilder-Samples/tree/master/samples/csharp_dotnetcore/24.bot-authentication-msgraph

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-12-13
      • 2021-07-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-13
      相关资源
      最近更新 更多