XMLRPC client
-
I just trying to access the wordpress API using a PHP library and something like this:
=============================================================
include(“IXR_Library.inc.php”);
$client = new IXR_Client(‘https://myserver.dev/wordpress/xmlrpc.php’);
if (!$client->query(‘wp.getPages’,’admin’,’admin’)) {
die(‘An error occurred – ‘.$client->getErrorCode().”:”.$client->getErrorMessage());
}
print $client->getResponse();
===============================================================
The respond I got is:
“An error occurred – 403:Bad login/pass combination.”These are the admin user/pass Im using. I tried the encoded password too with the same result.
My questions:
-How can I implement the request?
-If I implement a plugin/application there is a secure way to get that user/password form the database.Thanks.
- The topic ‘XMLRPC client’ is closed to new replies.