onenote

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

Getting a OneNote token with Java

瘦欲@ 提交于 2020-01-25 21:06:08
问题 I fail to get a valid OneNote token from Java (in a desktop application). I think I may not understand the whole process of authorization through an application. But I can't find information that clears this up. Here is the Java code I use: HttpsURLConnection refreshTokenConnection; refreshTokenConnection = (HttpsURLConnection) (new URL(TOKEN_REQUEST_URL)).openConnection(); refreshTokenConnection.setDoOutput(true); refreshTokenConnection.setRequestMethod("POST"); refreshTokenConnection

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

Invalid XML error from OneNote API

寵の児 提交于 2020-01-17 03:37:05
问题 I am trying to create a table in a new page on OneNote via the COM API. It's coming back with invalid XML but I can't figure out why... I'd appreciate any expert help :) I'm getting the following error: Exception from HRESULT: 0x80042001 When running this code: static string CreatePage(string sectionId, string pageName) { // Create the new page string pageId; onenoteApp.CreateNewPage(sectionId, out pageId, NewPageStyle.npsBlankPageWithTitle); var doc = CreateTable(); // Update the page

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:/

OneNote pages API doesn't return pages in section-groups

人走茶凉 提交于 2020-01-16 07:51:08
问题 I'm using the OneNote REST API (documented here). According to the documentation, calling the 'pages' endpoint returns "all the OneNote pages across all notebooks ..." The endpoint I'm calling: https://www.onenote.com/api/beta/me/notes/pages This seems to work in most / some cases, but pages which are part of sections which are themselves placed in section groups aren't returned. Does anyone know if I'm doing something wrong on my side? Could it be a bug in the API or its documentation? 回答1:

Get OneNote pages through its web API

落花浮王杯 提交于 2020-01-15 12:30:10
问题 I'm trying to develop a NodeJS that interact with the OneNote API. Currently I;m trying to retrieve the content (the HTML) of the onenote pages. Based on the documentation (http://dev.onenote.com/docs) that is possible using he beta API, which should be www.onenote.com/api/beta/sections/{id}/pages, but I've tried many times without success. I always get an error response: 403 { "error":{ "code":"40004","message":"The OAuth token provided does not have the necessary scopes to complete the

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;