Building the REST API client

The API client is the user or service that uses the data provided by the REST API. We use the client to access the REST API of another site. The client site could be WordPress or a non-WordPress site. The client can also be implemented in a different programming language without using PHP. Let's identify the usage of API clients. In this chapter, we going to look at the process of building REST API client to access our data from external sites, as it's the most important use of an API.

Get WordPress Development Quick Start Guide 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.