Title: MarkyC's Replies | WordPress.org

---

# MarkyC

  [  ](https://wordpress.org/support/users/markyc/)

 *   [Profile](https://wordpress.org/support/users/markyc/)
 *   [Topics Started](https://wordpress.org/support/users/markyc/topics/)
 *   [Replies Created](https://wordpress.org/support/users/markyc/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/markyc/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/markyc/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/markyc/engagements/)
 *   [Favorites](https://wordpress.org/support/users/markyc/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JSON API] Send POST request to controller](https://wordpress.org/support/topic/send-post-request-to-controller/)
 *  [MarkyC](https://wordpress.org/support/users/markyc/)
 * (@markyc)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/send-post-request-to-controller/#post-5150126)
 * There was no language given, so I assume you mean a cURL command. First you must
   receive a nonce from [get_nonce](https://wordpress.org/plugins/json-api/other_notes/#Method:-get_nonce).
   Note that `%20` is the character encoding of a space (‘ ‘)
 * `curl -X POST -d "nonce=my_nonce_from_get_nonce&title=my%20post&content=blah"
   http://example.com/blog/?json=create_post --header "Content-Type:application/
   json"`
 * See here for more parameters: [https://wordpress.org/plugins/json-api/other_notes/#2.2.-Pages-controller-methods](https://wordpress.org/plugins/json-api/other_notes/#2.2.-Pages-controller-methods)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JSON API] Can we use this plugin to integrate WordPress with rails application?](https://wordpress.org/support/topic/can-we-use-this-plugin-to-integrate-wordpress-with-rails-application/)
 *  [MarkyC](https://wordpress.org/support/users/markyc/)
 * (@markyc)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/can-we-use-this-plugin-to-integrate-wordpress-with-rails-application/#post-5140160)
 * > Can you please help out if this is the right tool to display wordpress blogs
   > in the rails application?
 * I’m assuming you want to display the latest blog posts in your Rails application.
   [The documentation explains how to do this](http://wordpress.org/plugins/json-api/other_notes/#Method:-get_recent_posts).
 * I assume you know how to consume a REST API with Rails, as well as understand
   the JSON format, and how to interact with it. I do not know Rails, so I’m not
   going to be much help with this, but this is basic language stuff that you should
   learn prior.
 * You should be issuing a GET request on a URL like the following
 * `http://www.example.com/blog/?json=get_recent_posts`
 * The response will be something like
 *     ```
       {
         "status": "ok",
         "count": 10,
         "count_total": 79,
         "pages": 7,
         "posts": [
               {
                   "id": 14,
                   "type": "post",
                   "slug": "post-title",
                   "url": "http://www.example.com/blog/?p=14",
                   "status": "publish",
                   "title": "Post Title",
                   "title_plain": Post Title",
                   "content": "...",
                   "excerpt": "...",
                   "date": "2014-07-29 17:23:45",
                   "modified": "2014-07-29 17:23:45",
                   "categories": [...],
                   "tags": [],
                   "author": {
                       "id": 1,
                       "slug": "markyc",
                       "name": "MarkyC",
                       "first_name": "",
                       "last_name": "",
                       "nickname": "MarkyC",
                       "url": "",
                       "description": ""
                   },
                   "comments": [],
                   "attachments": [],
                   "comment_count": 0,
                   "comment_status": "open",
                   "custom_fields": {}
               },
         ]
       }
       ```
   
 * As a newbie, get used to reading more than coding. It will be very hard to learn
   or do something without reading about how it works.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JSON API] Get new Posts](https://wordpress.org/support/topic/get-new-posts/)
 *  [MarkyC](https://wordpress.org/support/users/markyc/)
 * (@markyc)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/get-new-posts/#post-5118380)
 * Perhaps save a `last_updated` date, and use `get_date_posts` from after `last_updated`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JSON API] Can we use this plugin to integrate WordPress with rails application?](https://wordpress.org/support/topic/can-we-use-this-plugin-to-integrate-wordpress-with-rails-application/)
 *  [MarkyC](https://wordpress.org/support/users/markyc/)
 * (@markyc)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/can-we-use-this-plugin-to-integrate-wordpress-with-rails-application/#post-5140024)
 * This is a vague question, maybe [check the documentation](http://wordpress.org/plugins/json-api/other_notes/).
   If all the features you require in a blog appear in the documentation, I’d assume
   you are good to go

Viewing 4 replies - 1 through 4 (of 4 total)