【问题标题】:Microsoft graph api - outlook - Returns only latest mailsMicrosoft graph api - Outlook - 仅返回最新邮件
【发布时间】:2021-07-31 04:56:39
【问题描述】:

outlook https://graph.microsoft.com/v1.0/me/messages 的 microsoft graph api 不会返回邮箱中的所有邮件。以及如何在特定时间间隔之间获取邮件。

【问题讨论】:

    标签: rest outlook pagination microsoft-graph-api


    【解决方案1】:

    您可以使用$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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-10-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-13
      • 1970-01-01
      相关资源
      最近更新 更多