Outlook升级OAuth2.0获取列出邮件(me/messages)方法的查询参数是否可以按时间查询

志森 陈 20 信誉分
2024-10-12T11:34:51.6966667+00:00

获取Outlook邮件列表方法(me/messages):https://learn.microsoft.com/zh-cn/graph/api/user-list-messages?view=graph-rest-1.0&tabs=http

我们想加一个创建时间查询参数,是否可以?如果可以语法怎么写?

下面是我们测试用例:
图片

Outlook | Windows | 经典 Outlook for Windows | 商业版
Microsoft 安全性 | Microsoft Graph
{count} 票

1 个答案

排序依据: 非常有帮助
  1. 匿名
    2024-10-14T09:03:08.1833333+00:00

    Hi @志森 陈

    这是可以的,使用$filter查询参数可以实现您的需求,如下所示:

    https://graph.microsoft.com/v1.0/me/messages?$filter=createdDateTime ge 2024-09-01 and createdDateTime lt 2024-10-13
    

    有关该查询参数的更多信息可以查看该文档

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    0 个注释 无注释

你的答案

提问者可以将答案标记为“已接受”,审查方可以将答案标记为“已推荐”,这有助于用户了解答案是否解决了提问者的问题。