此页面上有三个示例URL https://developer.microsoft.com/en-us/graph/docs/concepts/onenote-get-content 只有第一个有效。
https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/2c568d5b67f2d066a2a85fb4292e8d7efe317b97/docs/overview.md示例行 等待graphClient.Me.Onenote.Sections.Request()。GetAsync()也不起作用。也获得20102。
用于完全休息网址
{ “错误”:{ “ 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
如何从Onenote中阅读一页?我现在没有DOCS或示例可以帮助我。
Graph SDK的DOC在哪里?
答案 0 :(得分:1)
1。我认为您可能需要像这样调用API接口:
https://graph.microsoft.com/v1.0/users/{userid}/onenote/sections/{section-id}/pages
或
https://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。它具有智能。
如果还有其他问题,请在下面留下评论。