我打電話這個端點https://graph.microsoft.com/beta/me/notes/
,並且在正確的用戶ID是牽強,會出現下面的錯誤...不知道發生了什麼事情所有的,因爲這個錯誤未記錄:OneNote API - 找不到HTTP資源?
{ error: { code: "UnknownError", message: "{ "Message": "No HTTP resource was found that matches the request URI 'https://www.onenote.com/api/beta/users('b2909c67-ab0e-45cf-a823-b0f945c22c00')/notes'." }", innerError: { request-id: "01b7d80f-aa04-463a-be58-c5a12414e243", date: "2016-02-27T07:07:06" } } }
-
當試圖筆記本電腦/顯然我的OAuth令牌沒有範圍 - 但似乎oauth令牌註冊不包括註釋?
{ error: { code: "40004", message: "The OAuth token provided does not have the necessary scopes to complete the request. Please make sure you are including one of the following scopes: Notes.ReadWrite.All,Notes.Read.All", innerError: { request-id: "73202234-970e-42c8-a569-eca4266ae75a", date: "2016-03-01T01:49:32" } } }
你知道如何將註釋添加到oauth標記範圍嗎? – ina
如何將註釋添加爲oauth標記中的可用範圍? (請參閱更新後的問題) – ina
不幸的是,圖形門戶網站尚未包含OneNote範圍,因爲OneNote API與Graph的集成僅在測試版中可用。 嘗試通過http://blogs.msdn.com/b/onenotedev/archive/2015/04/30/register-your-application-in-azure-ad.aspx – DipakBoyed