OneNote页面API不返回节组中的页面 [英] OneNote pages API doesn't return pages in section-groups

查看:80
本文介绍了OneNote页面API不返回节组中的页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用OneNote REST API(在此处记录).根据文档,调用页面"端点将返回所有笔记本上的所有OneNote页面..."

I'm using the OneNote REST API (documented here). According to the documentation, calling the 'pages' endpoint returns "all the OneNote pages across all notebooks ..."

我正在呼叫的端点:https://www.onenote.com/api/beta/me/notes/pages

在大多数/某些情况下,这似乎可行,但是不会返回本身属于节组的节的一部分的页面.

This seems to work in most / some cases, but pages which are part of sections which are themselves placed in section groups aren't returned.

有人知道我在做错什么吗?可能是API或其文档中的错误吗?

Does anyone know if I'm doing something wrong on my side? Could it be a bug in the API or its documentation?

推荐答案

默认情况下,OneNote API一次仅返回20页.使用$ top和$ skip之类的OData运算符,您可以遍历API的所有结果.我们认为您未看到的页面可能是未浏览所有页面结果的结果.页面结果还将包含一个下一个链接",以使此操作更容易.

The OneNote API returns, by default, only 20 pages at a time. Using OData operators like $top and $skip, you can walk through all of the results of the API. We believe that the pages you're not seeing may be the result of not walking through all of the page results. The page result will also have a "next link" included to make this easier.

这篇关于OneNote页面API不返回节组中的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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