OneNote API无法从共享笔记本中获取任何笔记以共享用户 [英] OneNote API fails to get any notes from shared notebook for sharing user

查看:427
本文介绍了OneNote API无法从共享笔记本中获取任何笔记以共享用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为开发人员,我能够从与客户端共享的笔记本中获取所有笔记(使用REST API使用PHP).如您所见,我的搜索返回了所访问部分中的所有25个音符:

As the developer, I'm able to GET (using PHP via the REST API) all notes from a notebook shared with a client. As you see, a search by me returns all 25 notes within the accessed section:

{ "@ odata.context":" https://www.onenote.com/api/v1. 0/ $ metadata#me/notes/sections('0-240BD74C83900C17%21128584')/pages(title,id,links,contentUrl)," @ odata.count:25," value:[ { ...

{ "@odata.context":"https://www.onenote.com/api/v1.0/$metadata#me/notes/sections('0-240BD74C83900C17%21128584')/pages(title,id,links,contentUrl)","@odata.count":25,"value":[ { ...

但是以我的(经过正式身份验证的)客户端身份登录(并使用完全相同的代码),我们得到了0条注释:

But logged in as my (duly authenticated) client (and using exactly the same code), we get 0 notes:

{ "@ odata.context":" https://www.onenote.com/api/v1. 0/ $ metadata#me/notes/sections('0-240BD74C83900C17%21128584')/pages(title,id,links,contentUrl)," @ odata.count:0," value:[
] }

{ "@odata.context":"https://www.onenote.com/api/v1.0/$metadata#me/notes/sections('0-240BD74C83900C17%21128584')/pages(title,id,links,contentUrl)","@odata.count":0,"value":[
] }

我的客户需要做什么才能不仅获得共享笔记本中的部分,而且(更重要的是!)获得该部分中的注释?

What needs to be done for my client to get not just the section in the shared notebook but (more importantly!) the notes in that section?

推荐答案

对于API未返回的共享页面,首先致歉.我已将问题归结为我们合作伙伴服务中的区域性事件. (用户影响估计不到活跃用户总数的1%).

First off apologies for the shared pages not being returned by the API. I've tracked the issue down to a regional incident in our partner service. (user impact is estimated to be <1% of the total active users).

事件一旦解决,您将看到正确返回了共享页面.

Once the incident is resolved, you will see the shared pages being returned correctly.

同时,作为临时解决方法,将以下标头添加到您的API请求中将返回共享页面.

In the meantime, as a temporary workaround adding the below header to your API request will return the shared pages.

FavorDataRecency:是

FavorDataRecency: true

这篇关于OneNote API无法从共享笔记本中获取任何笔记以共享用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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