基于电子邮件的Woocommerce API查找客户详细信息

问题描述

我正在尝试使用Woocommerce API通过引用客户的电子邮件地址来查找其详细信息。

https://example.com/wc-api/v3/customers/?consumer_key=xxxx&consumer_secret=xxx

有没有办法通过电子邮件参数而不是ID获取客户的详细信息?我似乎在API文档中找不到任何内容。

解决方法

一切都很好。弄清楚了。就是这个API地址:

https://example.com/wp-json/wc/v3/customers?email=xxx&consumer_key=xxxx&consumer_secret=xxxxx

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...