我可以通过以下请求访问我的一个驱动器上的文档:
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:
您应该查看
上一篇:我怎样才能创建一个类似于Twitter的应用程序的位置切换按钮切换按钮?按钮、类似于、创建一个、应用程序
下一篇:&QUOT;无效的转义序列(有效的是\ B \吨\ñ\ F \ r \&QUOT; \'\\)&QUOT;语法错误的是、序列、有效、语法错误