【发布时间】:2014-10-20 02:49:00
【问题描述】:
我正在尝试开发一个与 OneNote API 交互的 NodeJS。目前我正在尝试检索 onenote 页面的内容(HTML)。
根据使用 beta API 可能的文档 (http://dev.onenote.com/docs),应该是 www.onenote.com/api/beta/sections/{id}/pages,但我尝试了很多次都没有成功.我总是收到错误响应:
403
{
"error":{
"code":"40004","message":"The OAuth token provided does not have the necessary scopes to complete the request. Please make sure you are including one of the following scopes: Office.onenote_update,Office.onenote_update_by_app,Office.onenote","@api.url":"http://go.microsoft.com/fwlink/?LinkID=400836"
}
}
我知道 API 可以正常工作,因为 API 参考 here 中的 Web 客户端运行良好。
如果有人能对此有所了解,我将不胜感激。
提前致谢。
附:我可以在同一个 API 中完美访问非 beta 端点。
【问题讨论】: