onenote-api

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 access shared content using OneNote api

落花浮王杯 提交于 2021-01-27 13:44:12
问题 I am integrating OneNote in my application. Using the OneNote API I am able to fetch all the Notebooks that belong to a particular user. Let's say a user A has 5 Notebooks of his own and 2 shared Notebooks. Let's say NoteBook6 is shared by user which is part of organization same A and NoteBook7 is shared by external user. In my application I want to access all these 7 notebooks which user can access. I tried this using Microsoft Graph as well as the OneNote API but I am only able to access

How do I read OneNote indented paragraphs using OneNote Javascript APIs?

放肆的年华 提交于 2020-06-23 11:24:24
问题 I have a notebook that contains these The docs for OneNote APIs are here (paragraph class selected already) https://docs.microsoft.com/en-us/javascript/api/onenote/onenote.paragraph?view=onenote-js-1.1 If I run this code: export async function run() { try { await OneNote.run( async context => { var page = context.application.getActivePage(); var pageContents = page.contents; var firstPageContent = pageContents.getItemAt(0); var paragraphs=firstPageContent.outline.paragraphs //firstPageContent

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

Onenote API for Local Computer

南笙酒味 提交于 2020-02-21 13:15:16
问题 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

OneNote API is not returning new pages (even via ms graph explorer)

泄露秘密 提交于 2020-02-02 04:22:25
问题 I'm a creator of an app that integrates with OneNote API via Microsoft graph SDKs for Android/iOS. Several of my users reported that the new OneNote notes stopped syncing with the app (hundreds more affected by this). I've been debugging this. And I can confirm that OneNote API does not return new pages. To reproduce: 1) create some new notes 2) go to Graph Explorer (https://developer.microsoft.com/en-us/graph/graph-explorer/) 3) user basic query (https://graph.microsoft.com/v1.0/me/onenote