Open MichelDiz opened 7 years ago
Sorry, SOLVED! But! I'm trying to connect to prestashop's Web Service. There's a way? like:
callapi(){
WebServiceHandler.get('http://192.168.1.5/prestashop/api/products',
{'x-auth-token': 'X3ILLI5WXIMEP8JJI3PKPICBXGDM2JMM'},
{'path':''})
.then((val)=>{
console.log('callapi: ' + JSON.stringify(val))
this.setState({data:val})
})
.catch((error) => console.log('callapi:'+ JSON.stringify(error)));
}
index.js line 15 from module