[英]Microsoft graph API how to query mails sent to specific address
[英]Microsoft graph api - outlook - Returns only latest mails
用于 outlook https://graph.microsoft.com/v1.0/me/messages的 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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.