0

请求测试版的 Outlook REST API 时。我检索此类消息,类型为 IPM.Activity。爬取用户邮箱时是否可以忽略所有这些项目并仅检索IPM.Note消息?

 {
        "@odata.id": "https://outlook.office365.com/api/beta/Users('458f8df4-4dd6-4b3e-af2e-c37008e81fb3@e2dde5e3-0421-4c8d-a73b-3b3d8c731602')/Messages('AAMkAGFjNWFjMTY1LTdkYzEtNDZlMy1iOWZkLTczNTg5ZTE3NzFjNwBGAAAAAAAFG5if3a7zSbz0iP-P_sW0BwAULJVV6lbSRpmW2SjukgVkAAAAAAENAAAULJVV6lbSRpmW2SjukgVkAAA4xRzIAAA=')",
        "@odata.etag": "W/\"CQAAABYAAAAULJVV6lbSRpmW2SjukgVkAAB+g4Fs\"",
        "Id": "AAMkAGFjNWFjMTY1LTdkYzEtNDZlMy1iOWZkLTczNTg5ZTE3NzFjNwBGAAAAAAAFG5if3a7zSbz0iP-P_sW0BwAULJVV6lbSRpmW2SjukgVkAAAAAAENAAAULJVV6lbSRpmW2SjukgVkAAA4xRzIAAA=",
        "CreatedDateTime": "2014-12-17T18:09:24Z",
        "ReceivedDateTime": null,
        "SentDateTime": null,
        "HasAttachments": false,
        "Subject": "IPM.Activity",
        "Body": {
            "ContentType": "Text",
            "Content": ""
        },
        "BodyPreview": "",
        "Importance": "Normal",
        "Sender": null,
        "From": null,
        "ToRecipients": [],
        "CcRecipients": [],
        "BccRecipients": [],
        "ConversationId": "AAQkAGFjNWFjMTY1LTdkYzEtNDZlMy1iOWZkLTczNTg5ZTE3NzFjNwAQAAKGuN8bc5hFm_1mdu582UM="    }
4

1 回答 1

-2

是的,您可以通过向此端点的查询添加 $filter 来做到这一点。这是对 MS graph api 支持的查询的参考:

https://msdn.microsoft.com/en-us/library/azure/ad/graph/howto/azure-ad-graph-api-supported-queries-filters-and-paging-options

于 2016-02-15T19:27:57.347 回答