OcB974 Posted July 25, 2018 Share Posted July 25, 2018 Hello, I'm developing a mobile application under the ionic 3 framework. I'm currently trying to get product images from the Prestashop API Webservice (PS1.6.1.18). I can get a response, but the response get Error, but status 200. How i can get a good anwser from the API ? I also try to create a post request (by sending the full contents of the xml) for the creation of a client account from the ionic application, on prestashop the client account is create, but the response of the query returns me a error, with a status 201. No real documentation is available to understand requests by HTTP, it drives me crazy! if someone know how work with http request with ionic, I'll take it. Thanks in advance Link to comment Share on other sites More sharing options...
OcB974 Posted July 31, 2018 Author Share Posted July 31, 2018 I found the solution. I need to specified in my request give me a responseType: 'text' because prestashop webservice response is XML ( for POST too ). I don't tried if GET request work with "output_format=JSON". 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