Microsoft Graph API:从站点默认驱动器获取所有DriveItem:无效的网址

时间:2019-07-14 12:02:48

标签: microsoft-graph

试图返回站点上的所有DriveItem。 我执行以下操作以获取返回结果的驱动器

获取https://graph.microsoft.com/v1.0/sites/mycompany.sharepoint.com:/sites/mysite:/drive

但以下内容返回“指定的网址无效”

https://graph.microsoft.com/v1.0/sites/mycompany.sharepoint.com:/sites/mysite:/drive/items

1 个答案:

答案 0 :(得分:0)

您可以通过这种方式获取根文件夹。

GET https://graph.microsoft.com/v1.0/sites/mycompany.sharepoint.com/sites/mysite/drive/root/children