私はWordpressブログへの投稿を公開するデスクトップアプリケーションを作成しようとしていて、Reuben Stanton's Wordpress XML-RPCライブラリを見つけました(何らかの理由で、彼のサイトは応答しません。 here's the code on Google Code)Wordpress XML-RPC AS3での公開
これですべてがうまくいきますが、投稿を公開すると奇妙なことが起こります。
private function publish():void {
var sel:CuratorBlog=blogSelect.selectedItem;
publisher=new WPService(sel.url, sel.login, sel.password);
publisher.addEventListener(WPServiceEvent.NEW_POST, postAdded);
var p:Post=new Post();
p.dateCreated=publishDate.selectedDate;
p.title=txtTitle.text;
p.mt_keywords=txtTags.text;
p.mt_allow_comments=1;
p.mt_allow_pings=1;
p.description=htmlText; //This is obtained from a richText control. And yes, I have tested that it is being assigned properly
publisher.posts.newPost(p, true);
btnPublish.enabled=false;
cursorManager.setBusyCursor();
}
private function postAdded(e:WPServiceEvent):void {
var postId:String=(e.data as String);
Alert.show(blogSelect.selectedItem.url + "?p=" + postId);
publisher.removeEventListener(WPServiceEvent.NEW_POST, postAdded);
cursorManager.removeBusyCursor();
btnPublish.enabled=true;
}
問題は、ポストが作成されていることですが、コンテンツなし:
は、ここに私のコードです。
私はブログを開いたときにブラウザのタグとタイトルを見ることができますが、内容はありません。どんな考え?どうすれば修正できますか?