node.js - Get OneNote pages through its web API -
i'm trying develop nodejs interact onenote api. i;m trying retrieve content (the html) of onenote pages.
based on documentation (http://dev.onenote.com/docs) possible using beta api, should www.onenote.com/api/beta/sections/{id}/pages, i've tried many times without success. error response:
403 { "error":{ "code":"40004","message":"the oauth token provided not have necessary scopes finish request. please create sure including 1 of next scopes: office.onenote_update,office.onenote_update_by_app,office.onenote","@api.url":"http://go.microsoft.com/fwlink/?linkid=400836" } }
i know api works because web client nowadays in api reference here works well.
if shed lite on this, appreciated.
thank in advance.
p.s. can access non-beta endpoint in same api.
you're receiving error because haven't requested (and subsequently had user grant) read permissions user's notebook, not because beta api – the permissions /v1.0
, /beta
identical.
this article on msdn explains of scopes onenote api.
the summary of article is:
you'll wantoffice.onenote_update_by_app
if need create , recall pages application. office.onenote_update
give carte blanche crud access of user's onenote content office.onenote
, office.onenote_create
allow access user's pages , create new pages, not create edits of user's notebooks, sections, or pages. node.js api onenote
No comments:
Post a Comment