Retrieving an individual post using XML-RPC

You can get the information of a single post by calling the metaWeblog.getPost method. You will have to pass the $post_id, $user_name, and $user_password.

query('metaWeblog.getPost', $id, RPC_USERNAME, RPC_PASSWORD);
$post = $client->getResponse();

echo json_encode($post);
?>

Leave a Reply