How to get all the items contained inside a office365 onedrive

大憨熊 提交于 2019-12-20 04:37:03

问题


I want to get all the files and folders contained inside a office365 onedrive folder in one rest API call, is there any option to do it?


回答1:


There isn't a specific API call to retrieve a flat representation of a Drive. You can achieve a similar effect however using the drive's search method.

Simply pass an empty query string and it will return metadata for each file (regardless of it's directory):

https://graph.microsoft.com/v1.0/me/drive/root/search(q='')



来源:https://stackoverflow.com/questions/37724252/how-to-get-all-the-items-contained-inside-a-office365-onedrive

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!