onenote快照Intranet网页

时间:2019-02-05 19:47:51

标签: onenote onenote-api

是否可以使用OneNote API来拍摄非面向公众的网站(内联网)的网页快照?

我正在使用OneNote API创建OneNote笔记本,页面和部分。运作良好。不幸的是,当我使用data-render-src并将其指向Intranet网站时,它无法拍摄快照。该应用程序与我要捕获的网站位于同一Intranet上。

示例HTML:

<!DOCTYPE html>
<html>
  <head>
    <title>A page with an image: Webpage capture zzzz</title>
    <meta name="created" value="2015-11-11T12:45:00.000-8:00"/>
  </head>
  <body>
    <p>This page displays an image of the webpage.</p>
    <img data-render-src="https://intranet.website.com" width="800"/>
  </body>
</html>

注意:我可以为可公开访问的网站拍摄快照。

Webpage snapshot说明 https://docs.microsoft.com/en-us/graph/onenote-images-files#add-a-webpage-snapshot

Image rendered from html说明 https://docs.microsoft.com/en-us/graph/onenote-images-files#add-an-image-rendered-from-html

1 个答案:

答案 0 :(得分:1)

我认为不是-OneNote aPI服务器将无法访问该页面,因为它不是公开的。您必须提取HTML并通过API发送它,而不是使用data-render-src。