WordPress.org

Forums

JSON API
Submit Comment (6 posts)

  1. ODapps
    Member
    Posted 1 year ago #

    Hi,

    For right now i'm submit a new comment to spesific post like this.

    http://mySite.com/api/respond/submit_comment/?post_id=993&name=ODapps&email=info@odapps.co.il&content=tests

    I need a way to reply to specific comment_id or set the parent of the new comment.
    Somethink like: http://mySite.com/api/respond/submit_comment/?post_id=993&name=ODapps&email=info@odapps.co.il&content=tests&parent=123456789

    any idea?

    https://wordpress.org/plugins/json-api/

  2. ODapps
    Member
    Posted 1 year ago #

    Any idea?

  3. upeuker
    Member
    Posted 1 year ago #

    I have to vote for this issue.
    I also would need to respond to an existing comment!

  4. upeuker
    Member
    Posted 1 year ago #

    I found a possible solution here:

    Not checked!

  5. ODapps
    Member
    Posted 1 year ago #

    I saw this solution but i didn't unterstant how to use it.

    How I can implement a submit comment function via url like:

    http://mySite.com/api/respond/submit_comment/?post_id=993&name=ODapps&email=info@odapps.co.il&content=tests&parent=123456789

    Do you check this?

  6. upeuker
    Member
    Posted 1 year ago #

    I don't understand your problem.

    You have the receive the "id" of the comment you would like to reply in comment from the response object included in the post you have read.

    Then make a simple HTTP request as described, depending on the language your application uses.

    The only thing I see is the missing description of the parameter "parent" in the docs (hopefully). I haven't checked if it works in the original plugin from the repository or may be its necessary to make a patch in the plugin itself.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • JSON API
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.