WooCommerce.NET
WooCommerce.NET copied to clipboard
Update Product methot returns WaitingForActivation but not updating product
RestAPI rest = new RestAPI(ClsWooCommerce.siteAdresi + "/wp-json/wc/v3/", ClsWooCommerce.apiAnahtari, ClsWooCommerce.apiGizliAnahtari);
WCObject wc = new WCObject(rest);
Product urunBilgisi = new Product();
urunBilgisi.name=....
.
.
.
var p = wc.Product.Update(urunID, urunBilgisi);
this code returns WaitingForActivation but not updating the product.
how can i solve this.
Product.Update is an async method, please use await in front of it.
I am also getting same result when try to add a product with "await wc.Product.Add(myProduct);" even if I use await. Method that I use this code has "async".