使用 MS Graph API 从 Python 桌面应用程序调用(MS Teams)给另一个人 [英] Use MS Graph API to call (MS Teams) to another person from Python Desktop Application

本文介绍了使用 MS Graph API 从 Python 桌面应用程序调用(MS Teams)给另一个人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发 python 桌面应用程序,总体思路如下:用户通过/遵循指令,如果出现问题,他/她会在应用程序中寻求帮助.应用必须在 MS Teams 中调用讲师.

如果您想使用您的机器人创建呼叫,document 展示了如何创建呼叫机器人并将呼叫能力添加到现有机器人和这个 sample 与客户端凭据流.

I'm working on the python desktop application with general idea as follow: a user goes through/follows an instruction and in case of problem he/she asks for help in application. App must call instructor in MS Teams.

I found Azure Sample in python that helped me login a user and get a token. Then I'm trying to create a call BUT there is a note in documentation: "You will need to register the calling bot..." and the post request has "callbackUri" parameters that I don't see how to get avoid.

As far as I know bots are really just code that runs within Teams and are useless outside of it..

So QUESTION: How to make call from python desktop application (from a real account, not a bot)? Or if you know how to do this with bots, any input will help!

Thanks!

解决方案

Create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. This API is for bot, not for the user.

Also, this API only supports application permissions which not support user to login, here is the difference between delegated permission and application permission. You could just get token with client credentials flow. But the sample is based on username and password(ROPC).

If you want to create call with your bot, the document shows how to create a calling bot and add calling capabilities to an existing bot and this sample is with client credentials flow.

这篇关于使用 MS Graph API 从 Python 桌面应用程序调用(MS Teams)给另一个人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆