Jump to content

axios prestashop web services


fancy|modules

Recommended Posts

Hello, I try to connect prestashop webservices using axios but with no luck, in postman this url return results

 

axios
                .get(
                    "http://HFD9UZKZMBEH2NFXXFPND6xxxxxU@xxxxxxxxx.xx/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

  • 7 months later...

that works for me :


     axios.get('http://HFD9UZKZMBEH2NFXXFPND6xxxxxU@xxxxxxxxx.xx/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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...