How can you access “Shared” personal notebooks via rest API?

自闭症网瘾萝莉.ら 提交于 2019-12-12 03:39:10

问题


I have a shared personal notebook that I would like to access via the rest api.

I'm signing in as the user with whom the notebook has been shared (shows as "personal >> xxx.onmicrosoft.com" under the "Shared with me" section of OneNote).

Looking at this url: OneNote REST API

I don't see the shared notebook as a personal notebook (I do see my personal notebooks):

https://www.onenote.com/api/v1.0/me/notes/notebooks

It doesn't show up under sharepoint site notebooks:

https://www.onenote.com/api/v1.0/myOrganization/siteCollections/{id}/sites/{id}/notes/notebooks

And it doesn't appear to be linked with a unified group.

So does anyone know how I access it?

Thanks for the help


回答1:


For enterprise notebooks, the /me endpoint only provides access to the OneNote content that’s owned by the current user. In the coming weeks, the /me endpoint will also include OneNote content that others have shared with the current user.

Right now, you can only use the /users/ or /users/ endpoint to access content that another user (specified in the URL) has shared with the current user.

We recently updated the docs to clarify the current behavior. We’ll update them again when the /me scope includes shared content, and update this question too. Thanks for the feedback, SpecWin!



来源:https://stackoverflow.com/questions/37324346/how-can-you-access-shared-personal-notebooks-via-rest-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!