【发布时间】:2014-07-30 13:25:40
【问题描述】:
如何在rest api的帮助下从magento获取多个按Id过滤的订单?
我尝试使用http://192.168.0.104:4422/magento/api/rest/orders?filter[1][attribute]=entity_id&filter[1][in]=1&filter[1][in]=3
但它返回我:
<magento_api>
<messages>
<error>
<data_item>
<code>401</code>
<message>oauth_problem=signature_invalid</message>
</data_item>
</error>
</messages>
</magento_api>
但如果我只使用一个过滤器in 参数http://192.168.0.104:4422/magento/api/rest/orders?filter[1][attribute]=entity_id&filter[1][in]=1 的请求 - 它效果很好。
【问题讨论】:
-
您是否为它创建了其余用户角色?
-
是的,magento 和所有其他 stuf 配置良好,问题仅出现在具有多个“in”参数的请求中。
-
@burzhuy,你解决了吗?我也很想知道。
-
@d4v1dv00 看我的回答
标签: magento rest magento-1.8