gad*_*lin 4 email office365 office365api microsoft-graph-api
我需要为两个用户 - John 和 Harry 之间的电子邮件交换找到 sessionId。在我的场景中:
我可以拨打这样的电话:GET /me/messages?$filter=internetMessageId eq abcd
是的,您可以按照您建议的形式进行 GET 调用 - 您尝试过吗?图 API 支持标准的 ODATA 查询参数。
在图形 API explorer 上,以下调用对我有用:
https://graph.microsoft.com/v1.0/me/messages?$filter=internetMessageId eq '<1430948481468.34600@THCIE7Dev2.onmicrosoft.com>'
这有效
https://graph.microsoft.com/v1.0/me/messages?$filter=internetMessageId eq '<1430948481468.34600@THCIE7Dev2.onmicrosoft.com>'
Run Code Online (Sandbox Code Playgroud)
但
必须对 internetMessageId 进行 URL 编码
因此
https://graph.microsoft.com/v1.0/me/messages?$filter=internetMessageId eq '%3C1430948481468.34600%40THCIE7Dev2.onmicrosoft.com%3E'
Run Code Online (Sandbox Code Playgroud)