Textcube XMLRPC를 이용하여 Tistory에 글쓰기

MetaWeblog API를 이용해서 플러그인 하나를 만들려고 생각중.
다행히도 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 망고

2008/08/20 00:28 2008/08/20 00:28
,
Response
No Trackback , No Comment
RSS :
http://www.shimminkyu.com/tc/rss/response/861

Trackback URL : http://www.shimminkyu.com/tc/trackback/861

Leave a comment
« Previous : 1 : ... 338 : 339 : 340 : 341 : 342 : 343 : 344 : 345 : 346 : ... 1061 : Next »

Lilypie Fourth Birthday tickers

Stay Foolish, Stay Hungry.

- 망고

Site Stats

Total hits:
440145
Today:
147
Yesterday:
155