Onenote 资源类型onenote resource type

适用于 Onenote 资源的入口点。The entry point for OneNote resources.

所有通过 Microsoft Graph API 对 OneNote 服务的调用都使用此服务根 URL:All calls to the OneNote service through the Microsoft Graph API use this service root URL:

https://graph.microsoft.com/{version}/{location}/onenote/ 

位置可以是 Office 365 或消费者版 OneDrive 上的用户笔记本,还可以是 Office 365 上的组笔记本或 SharePoint 站点托管的团队笔记本。The location can be user notebooks on Office 365 or consumer OneDrive, group notebooks or SharePoint site-hosted team notebooks on Office 365.

用户笔记本 要访问消费者版 OneDrive 或 OneDrive for Business 上的个人笔记本,请使用下列 URL 之一:User notebooks To access personal notebooks on consumer OneDrive or OneDrive for Business, use one of the following URLs:

https://graph.microsoft.com/{version}/me/onenote/{notebooks | sections | sectionGroups | pages} 
https://graph.microsoft.com/{version}/users/{userPrincipalName}/onenote/{notebooks | sections | sectionGroups | pages} 
https://graph.microsoft.com/{version}/users/{id}/onenote/{notebooks | sections | sectionGroups | pages} 

组笔记本 要访问组所有的笔记本,请使用下列服务根 URL:Group notebooks To access notebooks that are owned by a group, use the following service root URL:

https://graph.microsoft.com/{version}/groups/{id}/onenote/{notebooks | sections | sectionGroups | pages} 

SharePoint 站点笔记本 要访问 SharePoint 团队网站所有的笔记本,请使用下列服务根 URL:SharePoint site notebooks To access notebooks that are owned by a SharePoint team site, use the following service root URL:

https://graph.microsoft.com/{version}/sites/{id}/onenote/{notebooks | sections | sectionGroups | pages} 

授权Authorization

有关使用 OneNote API 所需权限的信息,请参阅 Notes permissionsFor information about the permissions required to work with OneNote APIs, see Notes permissions.

关系Relationships

关系Relationship 类型Type 说明Description
笔记本notebooks 笔记本集合Notebook collection 用户或组所有的 OneNote 笔记本集合。The collection of OneNote notebooks that are owned by the user or group. 只读。Read-only. 可为 NULL。Nullable.
operationsoperations OnenoteOperation 集合OnenoteOperation collection OneNote 操作状态。The status of OneNote operations. 不支持获取操作集合,但如果响应中返回 Operation-Location 标头,可以获取长时间运行的操作的状态。Getting an operations collection is not supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. 只读。Read-only. 可为 NULL。Nullable.
pagespages OnenotePage 集合OnenotePage collection 用户或组所有的全部 OneNote 笔记本中的页面。The pages in all OneNote notebooks that are owned by the user or group. 只读。Read-only. 可为 NULL。Nullable.
resourcesresources OnenoteResource 集合OnenoteResource collection OneNote 页面中的图像和其他文件资源。The image and other file resources in OneNote pages. 不支持获取资源集合,但可以获取特定资源的二进制内容Getting a resources collection is not supported, but you can get the binary content of a specific resource. 只读。Read-only. 可为 NULL。Nullable.
sectionGroupssectionGroups SectionGroup 集合SectionGroup collection 用户或组所有的全部 OneNote 笔记本中的分区组。The section groups in all OneNote notebooks that are owned by the user or group. 只读。Read-only. 可为 NULL。Nullable.
sectionssections OnenoteSection 集合OnenoteSection collection 用户或组所有的全部 OneNote 笔记本中的节。The sections in all OneNote notebooks that are owned by the user or group. 只读。Read-only. 可为 Null。Nullable.

方法Methods

方法Method 返回类型Return Type 说明Description
创建笔记本Create notebook 笔记本Notebook 通过发布到笔记本集合创建笔记本。Create a notebook by posting to the notebooks collection.
列出笔记本List notebooks 笔记本集合Notebook collection 获取笔记本的集合。Get a collection of notebooks.
创建页面Create page 页面Page 通过发布到页面集合创建页面。Create a page by posting to the pages collection.
列出页面List pages 页面集合Page collection 获取页面的集合。Get a collection of pages.
列出分区组List section groups SectionGroup 集合SectionGroup collection 获取分区组的集合。Get a collection of section groups.
列出节List sections OnenoteSection 集合OnenoteSection collection 获取节的集合。Get a collection of sections.

JSON 表示形式JSON Representation

下面是资源的 JSON 表示形式。Here is a JSON representation of the resource.

{
}