Teams Graph API,正在从每个 Teams 频道检索文件

Teams Graph API, Retrieving files from each Teams channel

我正在尝试检索与每个团队中的每个频道关联的所有文件。根据 Microsoft Graph REST API V1.0 文档,它是 GET /teams/{id}/channels/{id}/filesFolder.\

请看https://docs.microsoft.com/en-us/graph/api/channel-get-filesfolder?view=graph-rest-1.0&tabs=http

但是,filesFolder 不再显示为可用查询。还有办法实现吗?

编辑:消息似乎是一样的。 https://docs.microsoft.com/en-us/graph/api/channel-list-messages?view=graph-rest-beta&tabs=csharp&viewFallbackFrom=graph-rest-1.0

为什么这些查询不再可用?

您可以使用 team-id 查询群组以直接从群组的驱动器中获取项目。

您可以使用 https://graph.microsoft.com/v1.0/groups/{team-id}/drive/root/children where /drive/root can get the Document library that the channel folders are part of and /children can display all items from the folder. Referto this doc 获取有关如何获取 DriveItem 的更多详细信息。