目前,据我所知,Microsoft图根据https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/message提供了2个用于Outlook邮件文件夹的主要端点
List mail folders和List child folders - 意味着只需在仪表板应用程序中构建文件夹层次结构,我需要进行递归REST API调用 - 这非常缓慢且非常糟糕。
有没有办法让微软一次返回所有文件夹?
Currently, as far as I can tell, Microsoft graph offers 2 primary endpoints for outlook mail folders according to https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/message
List mail folders and List child folders - meaning just to build the folder hierarchy in my dashboard app, I need to make recursive REST API calls - which is very slow and very bad.
Is there any way to get microsoft to just return all folders at once?
最满意答案
不,没有。 您应该检查每个文件夹上的childFolderCount属性,并且只查询是否为非零。
No there isn't. You should check the childFolderCount property on each folder and only query if non-zero.
更多推荐
发布评论