gpt4 book ai didi

azure - 如何在 Office 365 API 上过滤来自特定电子邮件地址的电子邮件?

转载 作者:行者123 更新时间:2023-12-05 03:09:47 25 4
gpt4 key购买 nike

我的用户拥有数千封电子邮件,但我只需要获取特定人员的未读电子邮件。我有以下电话,但它对我不起作用。

curl -i https://graph.microsoft.com/v1.0/me/messages$filter=From/EmailAddress/Address eq '<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="55343930272126783b3a273025392c1538343c397b223c3b313a2226342f2027307b363a38" rel="noreferrer noopener nofollow">[email protected]</a>' H 'Content-Type: application/x-www-form-urlencoded' -H 'Authorization: Bearer token ....'

{
"error": {
"code": "BadRequest",
"message": "Unsupported segment type. ODataQuery: users/020f1da4-031d-4....26513bb0/messages=From/EmailAddress/Address",
"innerError": {
"request-id": "2aaaaeb...42-ffc6d0e44f3d",
"date": "2017-01-24T01:30:44"
}
}
}

如何从 MS Office API“FROM”特定人员获取电子邮件,而不将所有电子邮件获取到我们的系统?

最佳答案

您在 messages 之后缺少字符 ?。要过滤指定用户未读消息,您可以使用以下请求:

GET:https://graph.microsoft.com/v1.0/me/messages?$filter=from/emailAddress/address+eq+'<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="136b6b536b6b6b6b3d7c7d7e7a70617c607c75673d707c7e" rel="noreferrer noopener nofollow">[email protected]</a>'+and+isRead+eq+false

关于azure - 如何在 Office 365 API 上过滤来自特定电子邮件地址的电子邮件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41818683/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com