我正在为 OneNote 开发加载项,但在使用 OneNote REST API 时遇到了问题,因为 Office-js 不提供与 REST API 兼容的 ID。堆栈溢出 https://stackoverflow.com/questions/40491066/difference-between-notebook-id-by-officejs-and-onenote-api 用户之声 https://onenote.uservoice.com/forums/245490-onenote-developer-apis/suggestions/17010982-add-onenote-add-ins-to-onenote-api-compatible-ids
据我所知,office-js 中的 ID 不是唯一的,我必须使用 clientUrl 从 REST API 检索数据才能获取唯一的 ID,每次调用大约需要 5-6 秒。这是我们的大问题,找不到任何解决方法。
But after a few months, I just found there is a function named getRestApiId
in objects from office-js and surprisingly it works perfect in my tests. I'm not sure this is added recently and maybe not ready to use, or it was there. I can't find any information about this.
Could anyone confirm whether it's good to use or still under developing?
编辑:我们现在支持“GetRestApi”并且它已记录它
https://github.com/OfficeDev/office-js-docs/blob/master/reference/onenote/page.md#getRestApiId https://github.com/OfficeDev/office-js-docs/blob/master/reference/onenote/page.md#getRestApiId
旧:您会发现它并不适用于所有类型的帐户(仅 Office365 帐户) - 这就是为什么这没有公开记录的原因。我们确实计划很快使其适用于所有类型的帐户。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)