Quantcast
Channel: WordPress.com Forums » Recent Topics
Viewing all articles
Browse latest Browse all 74536

lazy2wayfarer on "Was there any changes in XML-RPC?!"

$
0
0

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?


Viewing all articles
Browse latest Browse all 74536

Trending Articles