4
我正在使用woocommerce rest API来构建电子商务Android应用程序。在Android中使用woocommerce rest api更改用户密码
我想用woocommerce休息API来实现更改密码,我是指这个链接
https://woocommerce.github.io/woocommerce-rest-api-docs/ ,但它无法正常工作。
如何才能实现更改密码?
我正在使用woocommerce rest API来构建电子商务Android应用程序。在Android中使用woocommerce rest api更改用户密码
我想用woocommerce休息API来实现更改密码,我是指这个链接
https://woocommerce.github.io/woocommerce-rest-api-docs/ ,但它无法正常工作。
如何才能实现更改密码?
我有使用Ionic3构建应用程序的woocommerce作为后端的相同问题。
以下代码适用于我,但您需要找到一种方法来计算出客户ID。
updateCustomer(){
this.customer.id=YOUR_CUSTOMER_ID;
this.customer.password = NEW_PASSWORD;
this.WooCommerce.putAsync("customers/" + this.customer.id, {customer: this.customer}).then((res)=>{
if(JSON.parse(res.body).customer){
console.log('customer updated');
}
}, (err)=>{
console.log(err.body)
})
}