Building the API client

WordPress provides the support for its API through the xmlrpc.php file located inside the root of the installation directory. Basically, we need two components to build and use an API:

  • API server: This is the application where the API function resides
  • API client: This is a third-party application or service that requests the functionality of an API

Since we are going to use the existing API functions, we don't need to worry about the server as it's built inside the core. So, we are going to build a third-party client to access the service. Later, we will be improving the API server to implement custom functionalities that go beyond the existing API functions. The API client is responsible for providing the following features: ...

Get WordPress Web Application Development 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.