I have some troubles with XML-RPC (
<?php
include("./wp-includes/class-IXR.php");
$client = new IXR_Client('http://lazy2wayfarer.wordpress.com/xmlrpc.php');
$content['title'] = 'Test Draft Entry using MetaWeblog API';
$content['categories'] = array($response[1]['categoryName']);
$content['description'] = '<p>Hello World!</p>';
if (!$client->query('metaWeblog.newPost','', 'admin',’MYPASSWORD’, $content, false)) {
die('An error occurred - '.$client->getErrorCode().":".$client->getErrorMessage());
}
echo $client->getResponse(); //with WordPress, will report the ID of the new post
?>
I have the error
An error occurred - -32700:parse error. not well formed
What's wrong?