如何在Node.js服务器上接收Microsoft Teams的消息?

huangapple go评论62阅读模式
英文:

Microsoft teams, how to recive messages to node.js server?

问题

我正在尝试从Microsoft Graph API获取messageContent。我正在使用订阅通知,在特定的Microsoft Teams团队中发生消息时返回数据资源给我。借助这些数据,我可以使用以下方法:

GET /teams/{team-id}/channels/{channel-id}/messages/{message-id}

如果我理解正确,我需要受保护的API才能实现这一点。是否可以在没有Azure付费订阅的情况下访问受保护的API?也许存在其他获取消息内容的方法?

英文:

I am trying to get messageContent from microsoft Graph-Api. I am using subscribtion notification that return me a data resources when message occure in specyfic team in ms teams. With helps this data i can use
GET /teams/{team-id}/channels/{channel-id}/messages/{message-id}. If i undestand corretly i need protected Api to make it

Is it possible to do get access to protected api without azure paid subscription? Maybe exist other method to get message content?

答案1

得分: 0

无需Azure付费订阅即可访问受保护的API。
这些API要求您在使用它们之前除了权限和同意之外还需要额外的验证。

要请求访问这些受保护的API,请完成以下请求表单

参考文档-https://learn.microsoft.com/en-us/graph/teams-protected-apis#request-access-to-protected-apis

英文:

No need for Azure paid subscription to access the protected api.
These APIs require that you have additional validation beyond permissions and consent before you can use them.

To request access to these protected APIs, complete the following request form.

Reference Document-https://learn.microsoft.com/en-us/graph/teams-protected-apis#request-access-to-protected-apis

huangapple
  • 本文由 发表于 2023年1月9日 17:46:48
  • 转载请务必保留本文链接:https://go.coder-hub.com/75055480.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定