示例页面更新请求 -
headers: {'content-type': 'multipart/form-data; boundary=NoteBoundary','Authorization': 'Bearer '+token}
data:
--NoteBoundary
Content-Disposition: form-data; name="Commands"
Content-Type: application/json
[{'action': 'replace', 'content': 'last call', 'target': 'title'}, {'action': 'replace', 'content': '<html><head><title>last call</title><meta name="created" content="2017-04-04T07:12:36"</meta></head><body style="font-size:13px"><span style="font-size:12px;color: #3d7fba;margin-left: 3px;position: relative;;cursor: pointer;"></span><div><p>w</p>\n\n<p>96y09</p></div></body></html>', 'target': 'body'}]
--NoteBoundary--
request_url: 'https://www.onenote.com/api/v1.0/me/notes/pages/'+onenote_id
requests.patch(request_url, data = data, headers = headers)
当我多次更新onenote页面时,它会创建该笔记的1份副本, 进一步更新请求不会更新重复的备注,但会继续更新旧备忘录
主要是在第二次更新通话时,它会创建1个重复的副本
答案 0 :(得分:0)
您确定&#34;重复页面&#34;你看到的不是冲突页面吗?
https://efficiency365.com/2015/07/02/how-to-handle-onenote-sync-conflicts/