WordPress API Course #4. Authentication and configuration – .com

In the fourth lesson of the WordPress API course we are going to see how we can authenticate ourselves and configure the API to make requests.

In order to authenticate ourselves in the API it is necessary that we see the possible methods available by the current version of WordPress.

We will also rely on the official WordPress REST API documentation to consult the different endpoints and resources when trying to launch our first requests with basic authentication. This time we will see how we can delete an article and how to edit it thanks to the access permissions. Go for it!

That easy! Surely you are excited about the power and possibilities that WordPress offers us with its API. Furthermore, it is very easy to use.

By default they focus on using the Javascript Developer API and that is why native support for Cookie authentication is the default method. However, WordPress has created different plugins that add a small layer on top so that we can use Basic and Oauth 1.0 authentication.

It must be taken into account that the Cookie method requires that the code that sends the request must be hosted on the same machine and session as the WordPress that is going to process the request, with Basic or Oauth it is not necessary.

Hence, we use the basic authentication plugin and with it we are going to start playing with the API of our WordPress. To make the requests we will use the Postman software. This application allows us to work with API in a very comfortable way and through a graphical interface.

See also  OBS course #10. StreamLabs OBS and OBS Live - .com

I encourage you to look for a way to implement authentication by Oauth or Cookie on your part. You can test the Cookie part through the official documentation. For Oauth I recommend installing the plugin suggested in the official documentation.

remember! If you have any questions or want to make a comment, you can write to us through the support panel at 🙂

Remember that if you will have access to everybody the courses and you can also enjoy everything from .

All chapters in this course:

Loading Facebook Comments ...
Loading Disqus Comments ...