如何使用 MS 图访问共享点在线站点中的文档库在线、如何使用、站点、文档

2023-09-06 17:34:52 作者:伴你99不88

我可以通过以下请求访问我的一个驱动器上的文档:

I am able to access the documents on my one drive with requests like this one:

https://graph.microsoft.com/v1.0/me/drive/root/children

我可以通过以下请求访问我公司的根共享点站点的文档库:

I am able to access a document library of a root sharepoint site of my company with a request like this:

https://graph.microsoft.com/v1.0/drive/root/children

它给了我根"库的内容:

It gives me the contents of the "root" library:

https://<my company>.sharepoint.com/Shared%20Documents

我无法访问我创建的 SP 子网站的文档库.例如这个:

I am not able to access the document library of a SP subsite I created. e.g. this one:

https://<my company>.sharepoint.com/samplesp/Shared%20Documents

如何使用 MS Graph 访问这样的文档库?

How can I access such a document library with MS Graph?

推荐答案

要访问 SharePoint 网站和列表,请查看 Microsoft Graph 中的 SharePoint API.

For accessing SharePoint sites and lists check out documentation of the SharePoint API in Microsoft Graph.

更新:

对于在使用 MS Graph API 访问特定 SharePoint 网站上的默认驱动器(以前称为文档"库)时遇到问题的用户:

For those who have problems with accessing default Drive (formerly "Documents" library) on a specific SharePoint site using MS Graph API:

您应该查看