Using the API

Now that we have clarified each of the available protocols, let's explore what we can do with the Magento API and how we can use it with each of the available protocols.

We will use the product endpoint as an example to access and work with the different API protocols.

Note

The examples are provided in PHP and use the three different protocols. For complete examples in other programming languages, check out http://magedevguide.com.

Setting up the API credentials for XML-RPC/SOAP

Before we get started we, need to create a set of web service credentials in order to access the API functions.

The first thing that we need to set up is the API user role. Roles control the permissions for the API using Access Control List (ACL). By implementing ...

Get Magento PHP Developer's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.