Add OneNote support
This adds a base for OneNote support. However, it needs a lot more work to be fully functional. In its current state, it can get notebooks from a SharePoint site and list sections, pages, and content. It's missing, pagination of sections and pages, create/edit notebooks, sections, pages, and more.
So, it's not ready for a merge, but I wanted to get it out there to get the discussion started and see if someone wants to help.
Example
sharepoint = account.sharepoint()
site = sharepoint.get_site('<site_id>')
notes = site.get_notes()
notebooks = notes.get_notebooks()
for notebook in notebooks:
for section in notebook.get_sections():
for page in section.get_pages():
print(page.content)
When ready I can review the code and merge it
Great work
When ready I can review the code and merge it
Great work
Thank you! I've added pagination and some more details. If you have the time could you have a look and tell me what features you think would have to be implemented for a merge? For example, I haven't added editing support yet. But maybe it could be merged as a "beta" and someone might be willing to help me finish it. Best regards.
I can merge it as it is now For the moment I expect it to return the note text only but I coudn't test it.
Can you add a section for OneNote to the Readme so I can merge this?