office365 - OneNote API - no HTTP Resource found? -
i'm calling endpoint https://graph.microsoft.com/beta/me/notes/
, , while right user id fetched, below error occurs... not sure what's going on @ all, error not documented:
{ error: { code: "unknownerror", message: "{ "message": "no http resource found matches 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" } } }
--
when trying notebooks/ apparently oauth token doesn't have scope - seems oauth token registration not include notes?
{ error: { code: "40004", message: "the oauth token provided not have necessary scopes complete request. please make sure including 1 of following scopes: notes.readwrite.all,notes.read.all", innererror: { request-id: "73202234-970e-42c8-a569-eca4266ae75a", date: "2016-03-01t01:49:32" } } }
this 404-notfound status code expected since https://graph.microsoft.com/beta/me/notes incomplete uri. entry point accessing onenote resources uri missing rest of path (to specify resource get).
for e.g. call https://graph.microsoft.com/beta/me/notes/notebooks list of notebooks. or https://graph.microsoft.com/beta/me/notes/pages list of pages etc.
Comments
Post a Comment