我将从klipfolio向https://api.podio.com/item/app/{app_id}/filter/发送一个POST请求,并在提供的body区域中指定JSON对象。但是,不管我在json对象中指定了哪些参数,它们似乎都无法工作。我使用了Podio文档中的参数:
{
"sort_by": The sort order to use,
"sort_desc": True to sort descending, false otherwise,
"filters": The filters to apply
{
"{key}": The value for the key filtering,
... (more filters)
},
"limit": The maximum number of items to return, defaults to 30,
"offset": The offset into the returned items, defaults to 0,
"remember": True if the view should be remembered, false otherwise
}=>但这不起作用
{
"limit": 50
}=>还是这个
{
"sort_by": id,
"sort_desc": true,
"filters": {
"id": {
"from": 50,
"to": 99
}
},
"limit": 50,
"offset": 0,
"remember": false
}我尝试过各种参数,似乎没有什么能影响结果。即使是像限制到50这样简单的东西也不起作用--它仍然会产生20个结果。有什么想法吗?
在检查了邮件请求之后,我可以看到
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryjHNZ1IQyAQII1ZrI这使我相信klipfolio实际上不允许将json对象作为数据发布。什么。
发布于 2015-08-04 21:06:20
在查询参数部分添加一个标题,其名称为“Content”,值为“application/json”。
https://stackoverflow.com/questions/31335750
复制相似问题