【发布时间】:2017-09-14 01:23:32
【问题描述】:
以下是本站点 OneNote API 文档中的示例架构,可以毫无问题地与 json2csharp.com 一起使用。
http://dev.onenote.com/docs#/reference/get-notebooks.
{
"createdBy": "user name",
"createdTime": "2013-10-05T10:57:00.683Z",
"id": "notebook ID",
"isDefault": false,
"isShared": false,
"lastModifiedBy": "user name",
"lastModifiedTime": "2014-01-28T18:49:00.47Z",
"links": {
"oneNoteClientUrl": {
"href": "onenote:https://{client URL}"
},
"oneNoteWebUrl": {
"href": "https://{web URL}"
}
},
"name": "notebook name",
"sectionGroupsUrl": "https://www.onenote.com/api/v1.0/notebooks/{notebook ID}/sectionGroups",
"sectionsUrl": "https://www.onenote.com/api/v1.0/notebooks/{notebook ID}/sections",
"self": "https://www.onenote.com/api/v1.0/notebooks/{notebook ID}",
"userRole": "Contributor"
}
但是,使用以下 Get Notebooks 链接具有不同的架构
不通过 json2csharp。 无法解析您的 JSON。请确保它是有效的。
“https://graph.microsoft.com/v1.0/me/onenote/notebooks”
createdBy 和 lastmodifiedBy 作为异常抛出。
apigee.com/console 应用中的示例使用 https://www.onenote.com/api/v1.0/me/notes/notebooks 链接并具有正确的架构。
如何解决这种差异?还是我弄错了?
【问题讨论】:
标签: json rest onenote-api