本文介绍了为什么我的帐户上的OneNote API滞后了大约3天?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

简而言之,通过OneNote API获取我的笔记的页面信息的数据大约需要3天的时间.为什么会这样(我只为我假设),如何解决?

我正在研究一个个人R程序,以阅读我的OneNote笔记.大约一周前启动并运行.身份验证工作正常,我可以使用GET请求从OneNote API中获取信息.但是,返回的有关我的OneNote页面(使用GET https://graph.microsoft.com/v1.0/me/onenote/pages)的信息已使用了大约3天.过去3天中的新笔记和最近3天中所做的更改不会反映在此数据中.它没有及时冻结,即明天检查会给我比明天晚三天的信息.这不仅仅是我的应用程序的问题,因为通过Microsoft Graph Explorer产生了相同的行为/结果.有人对如何解决这个问题有见识吗?

I'm working on a personal R program to read my OneNote Notes. Got it up and running about a week ago. Authentication works fine and I can use GET requests to get information from the OneNote API. However, the information that is returned about my OneNote pages (using GET https://graph.microsoft.com/v1.0/me/onenote/pages) is about 3 days old. New notes from the past 3 days and changes made in the last 3 days are not reflected in this data. It is not frozen in time, i.e. checking tomorrow will give me information that is 3 days behind tomorrow. This is not solely an issue with my application, as the same behavior/results are produced through the Microsoft Graph Explorer. Does anyone have insight on how to fix this?

推荐答案

从1月30日开始,我可以确认此行为仍然正确.调用以获取某节的页面,或通常返回非常陈旧信息的页面. .要在您的OneNote帐户中测试,删除或创建一堆页面,然后在API资源管理器中调用:

I can confirm this behavior is still true as of Jan. 30. Calls to get the pages of a section, or pages in general return indexes of very stale information. To test, delete or create a bunch of pages in your OneNote account, then call in the API Explorer:

获取 https://graph.microsoft.com/v1.0/我/onenote/页面

在进行了这些更改之后,将至少为您提供有关已删除页面的信息,并且至少在天内不会提供任何新信息.如果您遵循已删除页面的返回的"contentUrl"属性,则该内容不存在.

You will be given information about deleted pages, and no new information for at least days after these changes have been made. If you follow the returned 'contentUrl' properties for deleted pages, the content does not exist.

似乎OneNote API中的其他端点也不会遇到相同的问题.例如,添加/删除/更新部分会导致API结果立即发生变化.

It seems other endpoints in the OneNote API are not subject to this same problem. Adding/removing/updating sections, for example, results in immediate changes to the results from the API.

这篇关于为什么我的帐户上的OneNote API滞后了大约3天?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 05:53