Search code examples
matlabonenoteonenote-apiundocumented-behavior

Access Microsoft Onenote book/section/page with Matlab


I would like to read-out my locally stored Onenote book/section/page with Matlab and automatically search for specified strings. How can this be achieved? Does the Onenote API have to be interfaced or is there any easier way?

Here is what I have so far (online resources are scarce):

app=actxserver('onenote.application');
app.get(); %... to run some functions of the Onenote API?

I'm new to this and more information may be also useful for others. Here's the two references [1,2] that I found.

Related: accessing onenote in Java


Solution

  • If you can peform authentication in Matlab (or just paste in a token) and issue web requests, you can use the search API.

    https://www.onenote.com/api/v1.0/pages?$search=...

    Note that search only works with consumer accounts/notebooks that are synced to the cloud.


    I am not sure how you could interface this with matlab, but if you are running on Windows you could use the interop API (this would be a local solution)

    How To Write To A OneNote 2013 Page Using C# and The OneNote Interop