[Plugin: JSON API] How to add a comment or post?
-
Hi there,
Im developing an mobile version of my website and I have a section, which gets all my post from my wp blog. This is working fine with this pugin.
But I don’t understand how to add a comment or a post via JSON.
Please can anyone help me out here and show me an example of how to do it???I know from the documentation that I need the method submit_comment
Method: submit_comment
Submits a comment to a WordPress post.Required arguments
post_id – which post to comment on
name – the commenter’s name
email – the commenter’s email address
content – the comment content
Optional arguments
redirect – redirect instead of returning a JSON object
redirect_ok – redirect to a specific URL when the status value is ok
redirect_error – redirect to a specific URL when the status value is error
redirect_pending – redirect to a specific URL when the status value is pending
Custom status values
pending – assigned if the comment submission is pending moderationI need an example code of how to call this method and to parse it via JSON.
- The topic ‘[Plugin: JSON API] How to add a comment or post?’ is closed to new replies.