JSON 对象传入跑道 API 过滤功能似乎不起作用
JSON object passed into Podio API Filter function doesn't seem to work
我正在从 klipfolio 向 https://api.podio.com/item/app/{app_id}/filter/ 发送一个 POST 请求,并在提供的正文区域中指定 JSON 对象。但是,无论我在 json 对象中指定什么参数,它们似乎都不起作用。我根据 Podio api 文档使用参数:
{
"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 个结果。有什么想法吗?
检查 post 请求后,我可以看到
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryjHNZ1IQyAQII1ZrI
这让我相信 klipfolio 实际上不允许 post json 对象作为数据。什么。
在查询参数部分添加一个 header,名称为 'Content-Type',值为 'application/json'。
我正在从 klipfolio 向 https://api.podio.com/item/app/{app_id}/filter/ 发送一个 POST 请求,并在提供的正文区域中指定 JSON 对象。但是,无论我在 json 对象中指定什么参数,它们似乎都不起作用。我根据 Podio api 文档使用参数:
{
"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 个结果。有什么想法吗?
检查 post 请求后,我可以看到
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryjHNZ1IQyAQII1ZrI
这让我相信 klipfolio 实际上不允许 post json 对象作为数据。什么。
在查询参数部分添加一个 header,名称为 'Content-Type',值为 'application/json'。