我不是程序员 - 只是想找到有关Microsoft Teams的问题的答案。我希望我的开发团队能够自动化团队中的一些流程,包括创建和存档渠道。任何人都可以通过API告诉我这个问题吗?
TIA
答案 0 :(得分:3)
Channels are available in Microsoft Graph API (on beta endpoint). To create a channel, you can POST to a /channel endpoint:
POST https://graph.microsoft.com/beta/teams/{id}/channels
Content-type: application/json
{
"displayName": "Channel Name",
"description": "Channel Description"
}
{id} in the request URL is the ID of the Team (not to be confused with the ID of Group that owns the team). The request needs to contain Auth token (bearer token) in Authorization header.
More info about this method is available on Microsoft Graph documentation page: https://docs.microsoft.com/en-us/graph/api/channel-post?view=graph-rest-1.0
答案 1 :(得分:2)
我创建了一个命令行工具,可让您使用上面概述的Graph API批量创建新的Microsoft Teams频道。它是用C#和.NET Core编写的,包含描述如何注册应用程序以用于团队环境的说明。
https://github.com/tamhinsf/ChannelSurf
您可以根据自己的需要将其作为示例或入门套件使用!
答案 2 :(得分:1)
很抱歉,此功能目前不是通过开发人员API公开的,而是在路线图上。