OneNote on SharePoint REST API [英] OneNote on SharePoint REST API

查看:67
本文介绍了OneNote on SharePoint REST API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

OneNote 团队最近 发表了一篇博文,其中解释了如何从存储在 SharePoint 上的 OneNote 笔记本(站点托管的笔记本",他们指的是它们)访问数据.

The OneNote team recently published a blog post in which they explain how to access data from OneNote notebooks that are stored on SharePoint ('site-hosted notebooks', as they refer to them).

我正在尝试使用他们描述的 API,但我无法让它工作.具体来说,第一步是使用以下 API 调用找出我的网站集和网站 ID:

I'm trying to use the API as they describe it, but I'm unable to get it to work. Specifically, the first step is to find out my site collections and site ID using the following API call:

https://www.onenote.com/api/beta/myorganization/siteCollections/FromUrl(url='{full-path-to-SharePoint-site}')

无论我做什么似乎都失败了:我尝试使用和不使用http://"或https://"来输入我的 SharePoint 网站的完整路径,并尝试以各种方式写入我的组织名称(最后有'-my',没有它),可能还有其他一些组合 - 它不起作用.我不断收到错误 400/错误的请求.

It seems to fail no matter what I do: I tried to put the full path to my SharePoint site with and without 'http://' or 'https://', tried to write my organization name in various ways (with '-my' at the end, and without it), and probably a few other combinations as well - it just doesn't work. I keep getting error 400 / bad request.

任何帮助将不胜感激.

推荐答案

这个语法对我来说就像一个魅力:https://www.onenote.com/api/beta/myorganization/siteCollections/FromUrl(url='https://XYZ.sharepoint.com/sites/ala')

This syntax works like a charm for me: https://www.onenote.com/api/beta/myorganization/siteCollections/FromUrl(url='https://XYZ.sharepoint.com/sites/ala')

这篇关于OneNote on SharePoint REST API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆