OneNote pages API doesn't return pages in section-groups

人走茶凉 提交于 2020-01-16 07:51:08

问题


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 ..."

The endpoint I'm calling: 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.

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


回答1:


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.



来源:https://stackoverflow.com/questions/32121451/onenote-pages-api-doesnt-return-pages-in-section-groups

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!