onenote-api

Why is the OneNote API lagging by roughly 3 days on my account?

偶尔善良 提交于 2020-01-24 01:51:09
问题 In short, getting page information for my notes through the OneNote API has data that lags by about 3 days. Why is this the case (I assume only for me) and how can this be fixed? I'm working on a personal R program to read my OneNote Notes. Got it up and running about a week ago. Authentication works fine and I can use GET requests to get information from the OneNote API. However, the information that is returned about my OneNote pages (using GET https://graph.microsoft.com/v1.0/me/onenote

OneNote API fails to get any notes from shared notebook for sharing user

て烟熏妆下的殇ゞ 提交于 2020-01-16 19:10:28
问题 As the developer, I'm able to GET (using PHP via the REST API) all notes from a notebook shared with a client. As you see, a search by me returns all 25 notes within the accessed section: { "@odata.context":"https://www.onenote.com/api/v1.0/$metadata#me/notes/sections('0-240BD74C83900C17%21128584')/pages(title,id,links,contentUrl)","@odata.count":25,"value":[ { ... But logged in as my (duly authenticated) client (and using exactly the same code), we get 0 notes: { "@odata.context":"https:/

getRestApiId function in objects from office-js for OneNote

风流意气都作罢 提交于 2020-01-15 05:14:08
问题 I'm developing add-in for OneNote and I've had trouble use OneNote REST APIs, as office-js doesn't give ID compatible with REST APIs. StackOverflow UserVoice And as I know that the ID from office-js is not unique, I had to retrieve data from REST API using clientUrl to get the unique ID and it took around 5-6 secs per each call. It was our big issue and couldn't find any workaround for this. But after a few months, I just found there is a function named getRestApiId in objects from office-js

OneNote API /pages endpoint not working properly

╄→гoц情女王★ 提交于 2020-01-14 06:20:11
问题 Summary In my pursuit of getting up to date information about my most recently modified OneNote pages via the REST API, I conducted a short experiment where I created a new Outlook ID; created OneNote notebooks, sections, and pages using both Windows and Mac; and used Graph Explorer to run OneNote API queries. I found that requests for page information using GET .../pages did not work and is most likely a result of API information not updating in real time. Further details are provided below;

Sharing OneNote Notebook through API

天涯浪子 提交于 2020-01-04 05:51:31
问题 As per the link to "Create sharing links on OneNote entities", it appears the OneNote API only supports sectionGroups. POST ../sectiongroups/{sectiongroup-id}/Microsoft.OneNote.Api.GetOrCreateAnonymousSharingLink It however seems possible to create a link to a notebook (or section) with the OneDrive API POST ../sites/{site-id}/drive/items/{item-id}/createLink Is there a problem with using the API this way (particularly as my notebooks don't have section groups)? 来源: https://stackoverflow.com

Any way in OneNote API to extract link to another OneNote page?

有些话、适合烂在心里 提交于 2019-12-25 06:24:31
问题 If we have a link to another OneNote page in the HTML content: <a href="onenote:SectionB.one#Note1&section-id={<section-id>}&page-id={<page-id>}&end&base-path=https://<path>" ... before I write a parsing routine to extract that link, I thought I'd ask if I'd overlooked anything in the OneNote API to make this easier. =========================================================================== [EDIT] Well, I've written my routine to extract the page-id of the linked note, but that page-id turns

Some (valid) tags not being returned [OutlineGroupNode is not supported ]

你说的曾经没有我的故事 提交于 2019-12-24 06:17:09
问题 The OneNote API is not returning supported tags in some lists. It seems to be an issue with complex bulleted lists; we just see OutlineGroupNode is not supported in the returned markup. The docs give some guidelines on how to write out tags to lists, but there's no mention of the API not returning any supported tags in certain situations. Please see the below example, what rules is this list breaking? What constitutes an OutlineGroupNode? Some clarity over what pre-existing list/tag content

Replace operation breaks a nested list in OneNote (Graph API)

自作多情 提交于 2019-12-24 00:08:51
问题 User organizes his todos in OneNote as nested list which looks like this: user's page I need to mark "Task A" as completed. According to a documentation I should perform replace action for todo. First I call GET /me/onenote/pages/{pageId}/content?includeIDs=true to find right id of todo "Task A" (see "Page content before the PATCH" ⇩). Then I send PATCH /me/onenote/pages/{pageId}/content with body: [ { "action": "replace", "target": "p:{33109592-eab9-44fa-8cec-867ab11cecfd}{55}", "content": "

OneNote Add in: Getting HTML content

和自甴很熟 提交于 2019-12-22 10:29:51
问题 In the example, code is provided to get RichText. It is able to get the plain text content of the page, but I cannot seem to get it to return the HTML formatted content of the page. For example: Header: A B should be: <p>Header:</p> <ul> <li>A</li> <li>B</li> </ul> However, the example code uses richText/text and only returns Header: . Is it possible to do something like richText/HTML and get the HTML shown above? (Note: I want to use the add-in only, not the OneNote REST API.) Thanks! Code

How to Access/Download OneNote notebook with Python?

余生颓废 提交于 2019-12-19 06:18:36
问题 How do I access a OneNote notebook using Python? Is there a way to export it to a pdf or other file programmatically? The notes are taken by hand, so I unfortunately can't just parse it for text. I've found this article from 2011, but the links are dead and I imagine it would be outdated anyway. I've also found this GitHub but I don't see how to implement it to do what I want. Alternatively, is there another language I could use? 回答1: If your notebooks are stored in OneDrive or Office 365,