【发布时间】:2021-07-31 04:56:39
【问题描述】:
outlook https://graph.microsoft.com/v1.0/me/messages 的 microsoft graph api 不会返回邮箱中的所有邮件。以及如何在特定时间间隔之间获取邮件。
【问题讨论】:
标签: rest outlook pagination microsoft-graph-api
outlook https://graph.microsoft.com/v1.0/me/messages 的 microsoft graph api 不会返回邮箱中的所有邮件。以及如何在特定时间间隔之间获取邮件。
【问题讨论】:
标签: rest outlook pagination microsoft-graph-api
您可以使用$filter 子句按日期和时间过滤电子邮件。
按日期
GET https://graph.microsoft.com/v1.0/me/messages?$filter=ReceivedDateTime ge 2021-05-07 and receivedDateTime lt 2021-05-10
按日期和时间
GET https://graph.microsoft.com/v1.0/me/messages?$filter=ReceivedDateTime ge 2021-05-07T08:00:00Z and receivedDateTime lt 2021-05-07T12:00:00Z
【讨论】: