列出页面List pages

命名空间:microsoft.graphNamespace: microsoft.graph

检索 page 对象的列表。Retrieve a list of page objects.

权限Permissions

要调用此 API,需要以下权限之一。要了解详细信息,包括如何选择权限的信息,请参阅权限One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

权限类型Permission type 权限(从最低特权到最高特权)Permissions (from least to most privileged)
委派(工作或学校帐户)Delegated (work or school account) 请参阅 "注意,"、"注释"、"全部"、"全部"、"写"Notes.Read, Notes.ReadWrite, Notes.Read.All, Notes.ReadWrite.All
委派(个人 Microsoft 帐户)Delegated (personal Microsoft account) 注意: Read、Notes。读写Notes.Read, Notes.ReadWrite
应用程序Application Notes.Read.All、Notes.ReadWrite.AllNotes.Read.All, Notes.ReadWrite.All

HTTP 请求HTTP request

GET /me/onenote/pages
GET /users/{id | userPrincipalName}/onenote/pages
GET /groups/{id}/onenote/pages
GET /sites/{id}/onenote/pages

可选的查询参数Optional query parameters

此方法支持 OData 查询参数 来帮助自定义响应。This method supports the OData Query Parameters to help customize the response.

页面的默认查询返回订购的前20个页面 lastModifiedTime descThe default query for pages returns the top 20 pages ordered by lastModifiedTime desc. 如果默认查询返回20个以上的页面,则该响应包含 @odata.nextLink 可用于对结果集进行分页的。If the default query returns more than 20 pages, the response contains an @odata.nextLink that you can use to page through the result set. 请求返回的最大页面数 top 为100。The maximum number of pages returned for a top request is 100.

默认响应将展开 parentSection 并选择节的 iddisplayNameself 属性。The default response expands parentSection and selects the section's id, displayName, and self properties. expand页面的有效值为 parentNotebookparentSectionValid expand values for pages are parentNotebook and parentSection.

请求标头Request headers

名称Name 类型Type 说明Description
AuthorizationAuthorization stringstring Bearer {token}。必需。Bearer {token}. Required.
接受Accept stringstring application/json

请求正文Request body

请勿提供此方法的请求正文。Do not supply a request body for this method.

响应Response

如果成功,此方法 200 OK 在响应正文中返回响应代码和 page 对象集合。If successful, this method returns a 200 OK response code and a collection of page objects in the response body.

示例Example

请求Request

下面是一个请求示例。Here is an example of the request.

GET https://graph.microsoft.com/v1.0/me/onenote/pages
响应Response

下面是一个响应示例。注意:为了简单起见,会将此处所示的响应对象截断。将从实际调用中返回所有属性。Here is an example of the response. Note: The response object shown here is truncated for brevity. All of the properties will be returned from an actual call.

HTTP/1.1 200 OK
Content-type: application/json
Content-length: 393

{
  "value": [
    {
      "title": "title-value",
      "createdByAppId": "createdByAppId-value",
      "links": {
        "oneNoteClientUrl": {
          "href": "href-value"
        },
        "oneNoteWebUrl": {
          "href": "href-value"
        }
      },
      "contentUrl": "contentUrl-value",
      "content": "content-value",
      "lastModifiedDateTime": "2016-10-19T10:37:00Z"
    }
  ]
}