Skip to content

Commit 21a2bb8

Browse files
committed
List pages method for OneNote
1 parent d4c38a9 commit 21a2bb8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

microsoftgraph/client.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,19 @@ def create_page(self, section_id, files):
274274
"""
275275
return self._post(self.base_url + '/me/onenote/sections/{}/pages'.format(section_id), files=files)
276276

277+
@token_required
278+
def list_pages(self, params=None):
279+
"""Create a new page in the specified section.
280+
281+
Args:
282+
params:
283+
284+
Returns:
285+
A dict.
286+
287+
"""
288+
return self._get(self.base_url + '/me/onenote/pages', params=params)
289+
277290
@token_required
278291
def get_me_events(self):
279292
"""Get a list of event objects in the user's mailbox. The list contains single instance meetings and

0 commit comments

Comments
 (0)