OneNote body is not sent when using non-multipart REST

我怕爱的太早我们不能终老 提交于 2020-01-05 15:11:13

问题


I'm having some issues when I try to create a note using OneNote REST API. This happens in my application and also when I try to use for testing purpose the apigee tool: https://apigee.com/onenote/embed/console/onenote

After some tests, i've tested the example available on OneNote documentation: http://msdn.microsoft.com/en-us/library/office/dn575438(v=office.15).aspx#sectionSection3

On apigee, I have the following parameters: Method: POST Header: Content-Type: text/html and the corresponding authorization token. Request Body:

<!DOCTYPE html>
<html>
    <head>
        <title>One Simple Note</title>
        <meta name="created" content="2013-06-11T12:45:00.000-8:00"/>
    </head>
    <body>
        <p>This is a simple non-multi-part HTML page.</p>
    </body>
</html>

The note is sent successfully and I receive 201. When I check my OneNote page, the note is created, but the body of the note is empty.

What am I doing wrong?


回答1:


Turns out we had a bug in our system that caused messages under 16kb to be ignored. We just fixed it, so you shouldn't have any problems now!



来源:https://stackoverflow.com/questions/25018464/onenote-body-is-not-sent-when-using-non-multipart-rest

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!