onenote

Converting between OneNote Ids for internal vs HTML links?

只谈情不闲聊 提交于 2021-02-20 05:49:05
问题 I'm trying to follow links in a OneNote page to get the content of the linked page via the OneNote API. The HTML link looks like this: (removed some text) onenote:..\Partners\Cloud.one#Integrated%20Asset%20Manager%20(IAM)&section-id={DEDAE503-E375-49F2-B93D-F38B4121C70C}&page-id={7BF5121A-0B6C-4B08-9EAE-8FF2030257EE}&end&base-path={full-path-here} Trying to do OneNoteApplication.GetPageContent with the linked page-id throws an error for page not found. If I do a GetHierarchy the ID's for the

Downloading one note page with image content as HTML

久未见 提交于 2021-02-11 09:37:07
问题 When we get the page content as HTML using one note API Image sources doesn't seem to be working correctly. There is a $value at the end of the image source in HTML content. How do we handle this when the one note page has images? Ex: img width="649" height="587" src="https://www.onenote.com/api/v1.0/me/notes/resources/0-7dcd564dd9c2472c82451536349be691!1-AA1F36752D8FDBF!14716/ $value " data-src-type="image/png" data-fullres-src="https://www.onenote.com/api/v1.0/me/notes/resources/0

Is there a way to overcome lag between changes in OneNote client and API results?

懵懂的女人 提交于 2021-02-08 09:25:14
问题 Changes in OneNote client aren't immediately reflected in apigee. For example: Renaming a section in OneNote client. Apigee shows the old name. Adding a section and adding notes to that section in OneNote; these aren't reflected in my app that uses the API. As seen below: Is this a API call caching issue or a known OneNote issue? Whats the recommended way to resolve it? I'm using Superagent and wondering if its no-cache plugin would resolve this. 回答1: If you add the following header to an API

Get sharepoint siteurl using weburl with MS Graph

与世无争的帅哥 提交于 2021-02-08 08:46:34
问题 I have onenote notebooks hosted at sharedpoint. I have a weburl to access that notebook. How I can retrieve siteId and siteCollectionId using webUrl with MS Graph API. Sample webUrl is - https://companyall-my.sharepoint.com/personal/ash_desh_company_com/Documents/Notebooks/Notebook1 回答1: If you encode the webUrl using this process and then make a request to the following you should be able to access the ids: https://graph.microsoft.com/v1.0/shares/{encodedurl}/site?select=sharepointIds As an

How to Stop OneNote API From Returning ID for Deleted Pages

血红的双手。 提交于 2021-01-29 22:09:51
问题 I place a call using the OneNote REST API to return a list of all the pages in a section. This works successfully. However, some of the pages it returns should no longer exist! Yet I can see their information, IDs, etc., even though they have previously been deleted. But if I try to delete them again using REST, I get the error: ERROR (deleteFromURL): <Response [404]> { "error":{ "code":"20102","message":"The specified resource ID does not exist.","@api.url":"http://aka.ms/onenote-errors

How to Stop OneNote API From Returning ID for Deleted Pages

邮差的信 提交于 2021-01-29 21:09:37
问题 I place a call using the OneNote REST API to return a list of all the pages in a section. This works successfully. However, some of the pages it returns should no longer exist! Yet I can see their information, IDs, etc., even though they have previously been deleted. But if I try to delete them again using REST, I get the error: ERROR (deleteFromURL): <Response [404]> { "error":{ "code":"20102","message":"The specified resource ID does not exist.","@api.url":"http://aka.ms/onenote-errors

How to retrieve shared notebooks using the MS Graph API (beta endpoint)

你说的曾经没有我的故事 提交于 2021-01-29 03:14:22
问题 According to OneNote in the Microsoft Graph API (in Preview) it should be possible to retrieve and access notebooks owned by the user and shared by other users (plus O365 group notebooks). However, executing https://graph.microsoft.com/beta/me/notes/notebooks just returns my (owned) notebooks (not the shared ones). So maybe I'm doing something wrong here, but how do I list all notebooks that my user has access to (owned as well as shared) using the Graph API? 回答1: Sorry for the confusion,

What type of app/authentication flow should I select to read my cloud OneNote content using a Python script and a personal Microsoft account?

谁都会走 提交于 2020-06-01 04:48:10
问题 I am completely new to MS Identity services and I am overwhelmed by the many options I have for what I need to do Here is what I am trying to achieve: I have a OneNote personal account and notes stored in the MS Cloud (OneDrive I guess). I need to be able to run a Python script, get the content of my notes, do some processing and save them back. This will be from the command line on a home Windows10 computer My question: what type of application should I register in MS AD and what type of

What type of app/authentication flow should I select to read my cloud OneNote content using a Python script and a personal Microsoft account?

旧时模样 提交于 2020-06-01 04:47:30
问题 I am completely new to MS Identity services and I am overwhelmed by the many options I have for what I need to do Here is what I am trying to achieve: I have a OneNote personal account and notes stored in the MS Cloud (OneDrive I guess). I need to be able to run a Python script, get the content of my notes, do some processing and save them back. This will be from the command line on a home Windows10 computer My question: what type of application should I register in MS AD and what type of

Onenote API for Local Computer

房东的猫 提交于 2020-02-21 13:20:53
问题 This is my first post on Stackoverflow - I am looking for guidance about OneNote API. I look forward to develop a solution primarily for "Own Usage" - which Creates, Opens and Closes OneNote Sections on my Local Machine - No cloud etc. is to be used. Please guide if it will be possible? I hope it should be possible - Please guide how to proceed and what to study for that. My programming skills are very basic. I will prefer to use OneNote 2007. [Edit on 5th Nov. Noon IST] A few clarifications