【问题标题】:OneNote page exist but resource link from OneNote API is expiredOneNote 页面存在,但来自 OneNote API 的资源链接已过期
【发布时间】:2017-02-14 14:52:02
【问题描述】:

我正在构建 OneNote 加载项,我需要一些导出功能。

从我的搜索中,我发现我只能使用带有 preAuthenticate 参数的 OneNote API

它给了我 html 内容,我确认它在浏览器中用图像正确呈现。但几分钟后,资源链接出现以下错误,我必须使用上述 API 重新获取内容 html。

{
   @api.url: "http://aka.ms/onenote-errors#C20130",
   code: "20130",
   message: "No HTTP resource was found that matches the request URI Resource not found, perhaps the public link has expired. Try a new public page content call.."
}

所以,我的问题是

  1. 有没有办法在资源过期的情况下获取 OneNote 页面的 html 内容?
  2. 是否有任何插件或 OneNote API 可以将 OneNote 页面导出为 pdf 文件?

提前致谢!

【问题讨论】:

    标签: office365api office-addins office365-apps onenote onenote-api


    【解决方案1】:
    1. 不 - 你必须下载图片,上传到其他地方,然后从那里引用它
    2. 不幸的是,也没有。我们只公开 HTML,因此您需要将返回的 HTML 转换为 PDF

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多