如何获取 office365 onedrive 中包含的所有项目 [英] How to get all the items contained inside a office365 onedrive
本文介绍了如何获取 office365 onedrive 中包含的所有项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
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?
解决方案
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='')
这篇关于如何获取 office365 onedrive 中包含的所有项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文