Microsoft Teams - 读出频道消息(ReactJS、NodeJS)

Microsoft Teams - read out channel messages (ReactJS, NodeJS)

在 Microsoft Teams 中,我们有一个名为 "BD" 的团队,这个团队有一个名为 "Global" 的频道。

现在我有一个带有 NodeJS 后端的 ReactJS 应用程序,我想 显示在团队 "BD"

的全球频道中写入的所有消息

我只需要显示频道中写入了哪些消息(所以只读就足够了)。

实现此目标的最简单方法是什么?如果可能的话,即使是 iFrame 也可以。

  1. 请看List channel messages Graph API. First try these APIs in Graph Explorer.

  2. 要在代码中实现它,您需要遵循 Get access on behalf of a user or Get access without a user

  3. 在使用应用程序权限调用此 API 之前(access without a user), you must request access. For details, see Protected APIs in Microsoft Teams