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 망고

08 20, 2008 00:28 08 20, 2008 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 : ... 40 : 41 : 42 : 43 : 44 : 45 : 46 : 47 : 48 : ... 764 : Next »

Recent Photo

recent photo from http://mangolog.tistory.com/ from Mango PhotoLog

Stay Foolish, Stay Hungry.

- 망고


Seoul

Paris

Authors

  1. 망고

Schedule

«  »
with Google Calendar API

Site Stats

Total hits:
200589
Today:
250
Yesterday:
315