0
votes

My use case is to integrate onenote in our application. I am using document mentioned at https://msdn.microsoft.com/en-us/office/office365/howto/onenote-copy.

To get notebooks some url's are mentioned like -

Construct the request URI

To construct the request URI, start with the service root URL for your platform:

Notebooks on OneDrive for Business /me/notes/ /users/{id}/notes/

SharePoint site notebooks /myOrganization/siteCollections/{id}/sites/{id}/notes/

Unified group notebooks /myOrganization/groups/{id}/notes/

Out of which I am able to successfully access https://www.onenote.com/api/v1.0/me/notes/.

What about id's in other api's. From where I can get groupId or userId of user who has shared content. Can anyone share link for documentation which mention details about all these things.

Any leads would be appreciated.

1
Thanks for your response.I still have few issues as - 1. Is there any other way to get group details as when I integrate OneNote in my application I am not aware of user who is admin for any organization 2. From where I will get user details who has shared content with my user. To access shared content we need to use /users/{id}/notes/ where id is of user sharing the content.Purva

1 Answers

0
votes

For retrieving shared OneNote content, you can use the GetRecentNotebooks API (https://blogs.msdn.microsoft.com/onenotedev/2017/04/21/get-recent-notebooks-api/) or /me/notes/notebooks?includesharednotebooks=true