OneNote 页面 API 不返回分区组中的页面

编程入门 行业动态 更新时间:2024-10-24 01:54:00
本文介绍了OneNote 页面 API 不返回分区组中的页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我正在使用 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/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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-18 05:54:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/932771.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:页面   分区   组中   OneNote   API

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!