Ionic and Woocommerce api error 401

Asked

Viewed 13 times

0

I’m trying to make a connection with Woocommerce with ionicV3:

this.wooCommerce = WC({
      url: 'http://localhost/WooComerce/',
      consumerKey: 'ck_933ad23a417a82e0de6d1558b917cb654d4d41d8',
      consumerSecret: 'cs_e82bae03c10dd8ebb4c3f29f3277ee1394d754d2',
    });
    this.wooCommerce.getAsync("products").then(res => {
      console.log(res);
    }, (err) => {
      console.log("error =>" ,err);
    })

and I have the following error => Invalid Object; And this is the requisition I’m making: inserir a descrição da imagem aqui

  • See if this link can help you : https://forum.ionicframework.com/t/woocommerce-restapi/15947

  • It didn’t help much, the worst is that with Postman using an Auth1.0 system I have access more with Ionic not

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.