MS Graph Onenote API端点不起作用

时间:2018-07-23 07:47:34

标签: microsoft-graph

  1. 此页面上有三个示例URL https://developer.microsoft.com/en-us/graph/docs/concepts/onenote-get-content 只有第一个有效。

    • graph.microsoft.com/v1.0/me/onenote/notes/pages收到400 BadRequest-找不到段'notes'的资源。
    • graph.microsoft.com/v1.0/me/onenote/pages?select=title,自身未找到404,错误代码为20102,并且指定的资源ID不存在。
  2. https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/2c568d5b67f2d066a2a85fb4292e8d7efe317b97/docs/overview.md示例行 等待graphClient.Me.Onenote.Sections.Request()。GetAsync()也不起作用。也获得20102。

  3. 用于完全休息网址

    • graph.microsoft.com/v1.0/me/onenote/notebooks可以使用。
    • graph.microsoft.com/v1.0/me/onenote/notebooks/ {notebook_id}有用。
    • graph.microsoft.com/v1.0/me/onenote/notebooks/ {notebook_id} / sections有效。
    • 但是graph.microsoft.com/v1.0/me/onenote/notebooks/{notebook_id}/sections/{section_id}无效。
      section_id来自从图api获得的部分列表。它将返回404 Not Found并出现以下错误。
  

{       “错误”:{           “ code”:“ UnknownError”,           “ message”:“ {\ r \ n \” Message \“:\”未找到与请求URI匹配的HTTP资源   'https://www.onenote.com/api/V1.0/users({user_id})/ notes / notebooks({notebook_id})/ sections({section_id})'。\“ \ r \ n}”,           “ innerError”:{               “请求ID”:xxxxxx,               “日期”:xxxxxx           }       }

也无法使用graph.microsoft.com/v1.0/me/onenote/notebooks/ {notebook_id} / sections / {section_id} / pages

  1. 如何从Onenote中阅读一页?我现在没有DOCS或示例可以帮助我。

  2. Graph SDK的DOC在哪里?

1 个答案:

答案 0 :(得分:1)

1。我认为您可能需要像这样调用API接口: https://graph.microsoft.com/v1.0/users/{userid}/onenote/sections/{section-id}/pageshttps://graph.microsoft.com/v1.0/me/onenote/sections/{section-id}/pages 从Onenote阅读所有页面。
2.您可以调用Microsoft Graph API来获取一页的内容,以及请求网址,如下所示:
https://graph.microsoft.com/v1.0/me/onenote/pages/{pageid}/content
3.您可以获得Graph API的内容:https://developer.microsoft.com/zh-cn/graph/docs/concepts/v1-overview
4.以下是图表文档:https://developer.microsoft.com/en-us/graph/code-samples-and-sdks
5.我认为您可能需要the graph explore来尝试一些API。它具有智能。

如果还有其他问题,请在下面留下评论。