I'm trying to connect my app with Drupal. It return me this error: "Something went wrong - -32602 : Server error. Wrong number of method parameters.". I think it should work.
Have anyone any clue what is wrong here?
My code:
set_time_limit(0);
require_once("IXR_Library.php");
// Create the client object
$client = new IXR_Client('http://localhost/drupal6/xmlrpc.php');
//$client->debug=true;
$username = "admin";
$password = "admin";
$params = array(0,$username,$password,10);
if (!$client->query('metaWeblog.getRecentPosts', $params)) {
die('Something went wrong - '.$client->getErrorCode().' : '.$client->getErrorMessage());
}
$myresponse = $client->getResponse();