使用非多部分 REST 时不发送 OneNote 正文 [英] OneNote body is not sent when using non-multipart REST

查看:48
本文介绍了使用非多部分 REST 时不发送 OneNote 正文的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用 OneNote REST API 创建笔记时遇到一些问题.这发生在我的应用程序中,当我尝试将 apigee 工具用于测试目的时也会发生这种情况:https://apigee.com/onenote/embed/console/onenote

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

经过一些测试,我测试了 OneNote 文档中提供的示例:http://msdn.microsoft.com/en-us/library/office/dn575438(v=office.15).aspx#sectionSection3

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

在 apigee 上,我有以下参数:方法:POSTHeader: Content-Type: text/html 和相应的授权令牌.请求正文:

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>

便条发送成功,我收到了 201.当我查看我的 OneNote 页面时,便笺已创建,但便笺正文为空.

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.

我做错了什么?

推荐答案

原来我们的系统中有一个错误,导致 16kb 以下的消息被忽略.我们刚刚修复了它,所以你现在应该没有任何问题!

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!

这篇关于使用非多部分 REST 时不发送 OneNote 正文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆