ashri / java-wordpress-api

A Java library for creating posts and getting some basic information from a Wordpress installation using its XML-RPC API
MIT License
14 stars 6 forks source link

Insert image to wordpress from Java #2

Open verteil-anniealfred opened 7 years ago

verteil-anniealfred commented 7 years ago

In my project I am trying to insert images (insert from url) to wordpress posts through Java, I am using the wp_posts table of the wordpress. It works good when http url images are given,but when with https url its giving 403 exception. I found out Grab & Save plugin for wordpress but couldn't find how to use it through Java. Thanks in advance.

ashri commented 7 years ago

Hi,

This project is a very basic implemention of the API to create a post with Wordpress. It makes calls to the XML-RPC API of Wordpress so I am not sure what you mean by "using the wp_posts table of the wordpress".

Are you directly accessing the Wordpress database?

If so this library is probably not required.

Also, what is returning a 403 exception?

Are you able to provide a Gist or a project with example code of what you are trying to achieve?

Thanks