WordPress.org

Support

Support » Plugins and Hacks » JSON API » Show and submit comments

Show and submit comments

  • 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/

Viewing 1 replies (of 1 total)
  • 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 😉

Viewing 1 replies (of 1 total)
  • The topic ‘Show and submit comments’ is closed to new replies.
Skip to toolbar