消息:"Invalid value 'xxx'. Entity body should be a correctly nested resource attribute name/value pa



当我尝试接收文件夹列表时,我得到消息:"无效值'Authorization=Bearer xxx'。实体主体应该是一个正确嵌套的资源属性名称/值对。

1. URL  https://api.box.com/2.0/folders
2. Post request
3. Content-type: json or x-www-form-urlencoded
4. Authorization:Bearer 5iV0.....

无效值"Authorization=Bearer xxx"。实体主体应该是正确嵌套资源属性名称/值对

这表明您可能正在发送Authorization头作为请求的正文。你没有提供任何上下文关于你是如何使HTTP请求,但你应该看看"如何设置HTTP头"为任何语言/模块,你正在使用看看如何正确地做到这一点。

相关内容

最新更新