我试图访问过去工作的特定文件夹的邮件。出于某种原因传递“?”在网址被拒绝为“非法字符”在我们的API,所以我编码的“?”到“%3F”,最终的url如下所示:
https://graph.microsoft.com/v1.0/me/MailFolders/INBOX/messages?$filter=From/EmailAddress/Address eq '[email protected]'
头部包含以下内容。
("Authorization", "Bearer " + token)
("Content-Type", "application/json")
("Accept", "application/json")
("grant_type", "client_credentials")
我正在使用Azure REST API的v1,如您所见。我无法理解发生了什么事。
收到错误。
{
"error": {
"code": "BadRequest",
"message": "Resource not found for the segment 'messages?$filter=From'.",
"innerError": {
"request-id": "d2e9b359-d40d-4c0a-a0a5-b4e3cf4b5ecd",
"date": "2017-03-24T14:35:28"
}
}
}
我接受你的帮助。
Nah。这是不正确的。 #1。它曾经工作。 #2。我试过你的解决方案和同样的问题 – WowBow