I want to work on intgerating the Plugin Directory with CP via the API.
The first thing I have done is to try to reach out to the API from the native wp_remote_post
function with a very simple example:
$request = wp_remote_post('https://directory.classicpress.net/api/plugins');
print_r($request);
And I am getting the following error:
I expected that this would return the actual JSON, just like when directly accessing it via GET on the browser.
The default method of the HTTP Class is GET, so I don’t know what is causing the communication issue. Any hints?