fancy|modules Posted January 2, 2021 Share Posted January 2, 2021 Hello, I try to connect prestashop webservices using axios but with no luck, in postman this url return results axios .get( "http://[email protected]/api/orders&display=full&output_format=JSON" ) .then(function(response) { console.log(response.data); }); does anyone know where can be problem? Thanks Link to comment Share on other sites More sharing options...
fatima zahra khaldi Posted August 7, 2021 Share Posted August 7, 2021 that works for me : axios.get('http://[email protected]/api/orders&display=full&output_format=JSON') .then(response => { // handle success this.orders = response.data console.log(response); }) .catch(error => { // handle error console.log(error); }); i hope i can help someone . Good luck Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now