다행히도 Textcube에 XMLRPC와 HTTPRequest가 구현되어있어 이를 이용했다.
[PHP Code]
include_once ("./lib/Eolin.PHP.Core.php");
include_once ("./lib/Eolin.PHP.XMLRPC.php");
include_once ("./lib/Eolin.PHP.HTTPRequest.php");
$rpc = new XMLRPC();
$rpc->url = "[BlogAPI URL]";
$blogid = "[Blogid]";
$username = "[username]";
$password = "[password]";
$post = array(
'title' => "Hello Blog",
'categories' => "",
'description' => "Hello Blog",
);
$publish = false;
$rpc->async = true;
print $rpc->call('metaWeblog.newPost', $blogid, $username, $password, $post, $publish);
Posted by 망고
MG_BeNice_v0.7.zip