[英]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.