HI guys, i’m try to make a woocomerce app with ionic3, and i’m using that code:
this.wooCommerce = WC({
url: 'http://localhost/WooComerce/wp-json/',
consumerKey: 'ck_8788c50903b73af1260b5ee557946ecc32a1c166',
consumerSecret: 'cs_d2e8c7cb2b718d3be27a3df67521313d638084ae'
});
this.wooCommerce.getAsync("products").then((res) => {
console.log(res);
}, (err) => {
console.log("error => ", err);
})
but for some reason i’m get the error: “Error => Invalid Object”