我試圖訪問過去工作的特定文件夾的郵件。出於某種原因傳遞「?」在網址被拒絕爲「非法字符」在我們的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