-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Labels
Description
Hi, i tried to post this question to stackoverflow but the recommended tag "wordpress-java" does not exist.
I want to use the wordpressj api client to post to wordpress via xmlrpc.
I'm using it like this:
Wordpress wp = new Wordpress(username, password, xmlRpcUrl);
Post post = new Post();
post.setPost_title("test");
DateTime date = new DateTime(1990, 12, 1, 1, 1);
post.setPost_date(date.toDate());
post.setPost_status("pending");
post.setPost_excerpt("test test");
wp.newPost(post);
How can I add a category to this post?
Reactions are currently unavailable