WordPress.org

Ready to get started?Download WordPress

Forums

JSON API
Show and submit comments (2 posts)

  1. xfemme
    Member
    Posted 7 months ago #

    Hi!

    I make a mobile app of my WordPress blog with Phonegap. The app shows my blogposts, but it doesn't show my comments and it isn't possible to submit a comment.

    Does anyone have an example of a code how to submit and read the comments or does anyone know how I can make this possible? :)

    Thanks!

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

  2. DJElo
    Member
    Posted 7 months ago #

    the post objects you get via the json api include comments. Take a look at the data you receive and the comments should be found under the comments array. Easy, I am doing the same as you but writing in native obj. c and convert the data into objects.
    For posting all you need ot do is send a post request to the api with the post id and the other details you can see in the api details ;)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.