简体   繁体   English

让团队在创建新项目/团队时通知自定义 API

[英]Make Teams notify a custom API on a new project/team being created

I'd like to get a call to my API from Teams when a new project is created.创建新项目时,我想从 Teams 拨打我的 API。 Something like this one but the other way around.这样的东西,但反过来。

When a user creates a new project in Teams, I need to get notified about that and learn the ID of the creator and the project itself, possibly with some extra parameters.当用户在 Teams 中创建新项目时,我需要得到通知并了解创建者的 ID 和项目本身,可能还有一些额外的参数。

When I google that issue, I only get info on the notifications in the GUI and questions on how to programmatically create the project from the custom application.当我用谷歌搜索那个问题时,我只得到有关 GUI 中通知的信息以及有关如何从自定义应用程序以编程方式创建项目的问题。 I'm new to how Teams work and may be missing something obvious, though.不过,我对 Teams 的工作方式还不熟悉,可能会遗漏一些明显的东西。 What terms should I aim for to get more info?我应该以哪些术语为目标来获取更多信息? I've seen some suggestions on relying on a bot but I wish my integration to be automatic, not relying on user input (other than creating the new project/team).我已经看到一些关于依赖机器人的建议,但我希望我的集成是自动的,而不依赖于用户输入(除了创建新项目/团队)。

I don't think there's a way to have Teams tell you this, you might need to go the other way around and poll the Graph API periodically.我认为没有办法让 Teams 告诉您这一点,您可能需要反过来 go 并定期轮询图表 API。 There is an operation to return all Teams , but be sure to request the Created Date and match it against your polling interval.有一个返回所有 Teams的操作,但请务必请求创建日期并将其与您的轮询间隔相匹配。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM