PDF Version of this tutorial

Example for Using the PrestaShop Web Service : CRUD

This tutorial shows you how to use the PrestaShop web service with PHP library by creating a "CRUD".
- PrestaShop 1.4 installed on a server with "module rewrite" enabled for apache
- A XAMPP server under PHP5
What is CRUD?
CRUD is an acronym that stands for "Create, Read, Update, Delete".
These are the four basic operations for managing data in an application.
The PrestaShop web service uses REST architecture in order to be available on as many platforms as possible, because HTTP and XML protocols are present on countless platforms.
What is REST?
REST defines an architecture that represents a set of good methods to practice on the web. It defines several rules, including one that we will describe that is similar to CRUD.
In HTTP we find four main methods that can perform processing on data that are defined in the REST architecture. This correspondence can also be done with CRUD:

Chapter 1 - Introduction: Creating Access to Back Office
Chapter 2 - Discovery: Testing access to the web service with the browser
Chapter 3 - First steps: Access the Web service and list client
3.1 - Access the web service through the bookstore
3.2 - Handling errors
3.3 - List clients
Chapter 4 - Retrieve Data: Retrieving a client
Chapter 5 - Modification: Update client
Chapter 6 - Creation: Remote Online Form
Chapter 7 - Removal: Remove customer accounts from the database
Chapter 8 - Advanced Use
Reminder: Concepts outlined in this tutorial