There are severals ways to make it right. Below I described my way of testing Prestashop API using cURL as the tool that checkes all dependencies. After enabling Prestashop API in your administration panel, save the API Key.
Depends what you want to check your xml files would be different. All possibilites you can find in the Prestashop API documentation, for instance: http://doc.prestashop.com/display/PS14/Chapter+4+-+Retrieve+Data+-+Retrieving+a+Client. Most important thing here is the XML file.
In our example we will add a new product to the Prestashop API. Here is ours XML file with data.
product.xml
1 2 3 4 5 6 7 8 9 10 11 |
<prestashop> <product> <price>123.00</price> <link_rewrite> <language id="1"><![CDATA[test-123]]></language> </link_rewrite> <name> <language id="1"><![CDATA[Test 123]]></language> </name> </product> </prestashop> |
Save it and execute command below.
1 |
curl -X POST -u 'YOUR_PRESTASHOP_API_KEY:' -d @product.xml 'http://YOUR_WEBSITE_URL/api/products' -v |
Pretashop has RESTful API so it depends on the http methods that you would be able to add / edit or remove products.
Ken1992
/ June 1, 2017This post is on 14 spot in google’s search results, if you want more traffic, you should build more backlinks to
your content, there is one trick to get free, hidden backlinks
from authority forums, search on youtube;
how to get hidden backlinks from forums
Larry04
/ November 13, 2017I think your page needs some fresh content. Writing manually
takes a lot of time, but there is tool for this boring task, search for; Boorfe’s tips unlimited content