如何使用 MS Graph API(测试版端点)检索共享笔记本 [英] How to retrieve shared notebooks using the MS Graph API (beta endpoint)

查看:70
本文介绍了如何使用 MS Graph API(测试版端点)检索共享笔记本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据 Microsoft Graph API 中的 OneNote(预览版) 应该可以检索和访问用户拥有并由其他用户共享的笔记本(以及 O365 组笔记本).

According to OneNote in the Microsoft Graph API (in Preview) it should be possible to retrieve and access notebooks owned by the user and shared by other users (plus O365 group notebooks).

但是,执行 https://graph.microsoft.com/beta/me/notes/notebooks 只返回我(拥有的)笔记本(不是共享的).所以也许我在这里做错了什么,但我如何使用 Graph API 列出我的用户有权访问(拥有和共享)的所有笔记本?

However, executing https://graph.microsoft.com/beta/me/notes/notebooks just returns my (owned) notebooks (not the shared ones). So maybe I'm doing something wrong here, but how do I list all notebooks that my user has access to (owned as well as shared) using the Graph API?

推荐答案

抱歉,OliverL.我们更新了博文以阐明 /me 端点当前仅提供对当前用户拥有的 OneNote 内容的访问权限.

Sorry for the confusion, OliverL. We've updated the blog post to clarify that the /me endpoint currently only provides access to the OneNote content that’s owned by the current user.

很快,/me 端点也将包含其他人与当前用户共享的 OneNote 内容,然后您将能够获得共享笔记本的列表.但是现在,您只能使用 /users//users/ 端点来访问其他用户(在 URL 中指定)的内容) 已与当前用户共享.

Soon the /me endpoint will also include OneNote content that others have shared with the current user, and then you'll be able to get a list of shared notebooks. But right now, you can only use the /users/<id> or /users/<userPrincipalName> endpoint to access content that another user (specified in the URL) has shared with the current user.

我们将在 OneNote 开发博客 发布时宣布即将进行的更改,并且在这里也记下它.感谢您的反馈!

We'll announce the upcoming change in the OneNote Dev Blog when we release it, and make note of it here too. Thanks for your feedback!

这篇关于如何使用 MS Graph API(测试版端点)检索共享笔记本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆