簡體   English   中英

Microsoft graph api - outlook - 僅返回最新郵件

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

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM