【问题标题】:Difference between "me/messages" and "me/mailfolders('inbox')/messages"“我/消息”和“我/邮件文件夹('收件箱')/消息”之间的区别
【发布时间】:2017-11-21 05:43:28
【问题描述】:

我正在尝试创建一个 Microsoft Graph Webhook 来订阅电子邮件。

this Webhook doc中的这两个Resource有什么区别?谢谢

me/messages

me/mailfolders('inbox')/messages

【问题讨论】:

    标签: rest office365 webhooks microsoft-graph-api office365api


    【解决方案1】:
    • https://graph.microsoft.com/v1.0/me/messages

      表示提供对所有消息的访问的顶级“消息”资源。然后,您可以使用可选参数过滤它们。

      For example,添加以下筛选参数会将返回的消息限制为仅返回具有 jon@contoso.com 的 emailAddress 属性的消息。 https://graph.microsoft.com/v1.0/me/messages?filter=emailAddress eq 'jon@contoso.com'

    • https://graph.microsoft.com/v1.0/me/mailfolders('inbox')/messages

      Resource 表示特定文件夹(在本例中为“收件箱”文件夹)中的邮件。

    【讨论】:

    • 看起来 /me/messages 无法进行分页 - 你能确认一下吗?
    • 看起来您不能使用它来获取用户邮箱中的所有邮件。好像只有前100名左右
    猜你喜欢
    • 2016-01-27
    • 2013-02-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-01-08
    • 1970-01-01
    • 2017-02-20
    相关资源
    最近更新 更多