php - Magento Rest api 通过电子邮件 ID 获取客户

标签 php rest magento oauth magento-1.7

我正在使用 magento OAuth 来获取客户信息。现在我可以通过“customerId”获取客户列表和客户信息。 Reference link

我可以通过电子邮件 ID 获取客户信息吗?

最佳答案

我想我刚刚明白了......

GET /api/rest/customers/?filter[0][attribute]=email&filter[0][in][0]<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="80bdedf9aee5ede1e9ecc0e1e4e4f2e5f3f3aee4e5" rel="noreferrer noopener nofollow">[email protected]</a> HTTP/1.1

这会使用提交的电子邮件地址过滤我的客户。有关 GET 请求过滤的更多信息,您可以在此处找到: http://www.magentocommerce.com/api/rest/get_filters.html

关于php - Magento Rest api 通过电子邮件 ID 获取客户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27753268/

相关文章:

php - AWS S3 PHP API : How to get url after file upload?

php - 我想验证从下拉列表中选择的时间何时超过当前时间

php - 计算大于 20 的值的数量

php - zend 框架中的 500 内部服务器错误

rest - Grails Spring Security REST 插件 - token 存储失败

php - magento从1.4.0.1升级到1.4.2.0

magento - Magento 中的保存需要很长时间

java - 设计具有不同响应参数但相同请求的 REST API

java - Google Fit Api 过滤手动添加的 Activity

MySQL - #1054 - 'childs' 中的未知列 'on clause'