python-o365 icon indicating copy to clipboard operation
python-o365 copied to clipboard

Add OneNote support

Open feelixe opened this issue 4 years ago • 3 comments

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)

feelixe avatar Sep 17 '21 11:09 feelixe

When ready I can review the code and merge it

Great work

alejcas avatar Oct 11 '21 07:10 alejcas

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.

feelixe avatar Oct 18 '21 14:10 feelixe

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?

alejcas avatar Nov 15 '21 10:11 alejcas