Bir WordPress yüklemesine yayınlamak için jwordpress-0.4.jar kullanıyorum.J wordpress'i kullanarak WordPress'te yayın oluşturma
Wordpress wp = new Wordpress(username, password, xmlRpcUrl);
Page recentPost = new Page();
recentPost.setPost_status("Published");
recentPost.setDescription("<ul>" + desc + "</ul>");
recentPost.setCategories(cat);
String pageID=recentPost.getPage_id();
String result = wp.newPost(recentPost, true);
Bu çok önce çalıştı, ama şimdi bunun denedim kendi zamanlama modu, gider yayımlamak gittiğinizde:
kullanıyorum kodudur
recentpost. setPost_status ("Yayın");
ve
wp.newPost (recentpost doğru);
Ama sonrası yayınlanmış hala:
bu yardımcı sizin için oluşturulan xml kontrol ettin mi? Wordpress'in API örneklerinden nasıl farklıdır? –
@Alessandro no, API Örneği'nden herhangi bir değişiklik yoktur. –
http://code.google.com/p/wordpress-java/source/browse/trunk/src/net/bican/wordpress/example/Main.java?spec=svn63&r=63 örneğini kullanıyorum –