I am trying to post comments on a Wordpress page from a mobile application over HTTP. I have the target URL but no details of the parameters that need to be passed. Is there a formal parameter list that I can refer for achieving the aforementioned?
Not sure if this is correct forum; please move this post if required.
Okay, I am not familiar with PHP so please excuse my ignorance here.
According to thispage there is a function wp-new-comment() which is to be invoked to add a new comment to the database. And the function takes just one parameter($commentdata).
Apparently, we can invoke different functions on the PHP server of WordPress by sending appropriate XML-RPC requests. For posting new comments the details can be found XML-RPC: wp.newComment()
I skimmed through the XML-RPC spec and tried to hand-craft request XML myself. Not sure if I have got it right though: