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

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

问题描述

我正在使用 OneNote REST API(记录在 此处).根据文档,调用pages"端点会返回所有笔记本中的所有 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天全站免登陆