简体   繁体   English

Microsoft graph api - outlook - 仅返回最新邮件

[英]Microsoft graph api - outlook - Returns only latest mails

The microsoft graph api for outlook https://graph.microsoft.com/v1.0/me/messages does not return all of the mails from the mailbox.用于 outlook https://graph.microsoft.com/v1.0/me/messages的 microsoft graph api 不会从邮箱返回所有邮件。 And how to get mails between specific intervals of time.以及如何在特定时间间隔之间获取邮件。

You can use $filter clause to filter emails by date and time.您可以使用$filter子句按日期和时间过滤电子邮件。

By date按日期

GET https://graph.microsoft.com/v1.0/me/messages?$filter=ReceivedDateTime ge 2021-05-07 and receivedDateTime lt 2021-05-10

By date and time按日期和时间

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM