Title: JSON response same for all request
Last modified: August 30, 2016

---

# JSON response same for all request

 *  Resolved [vishdube](https://wordpress.org/support/users/vishdube/)
 * (@vishdube)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/json-response-same-for-all-request/)
 * {“status”:”ok”,”count”:1,”count_total”:1,”pages”:1,”posts”:[{“id”:1,”type”:”post”,”
   slug”:”hello-world”,”url”:”http:\/\/www.petraforce.com\/wordpress\/?p=1″,”status”:”
   publish”,”title”:”Hello world!”,”title_plain”:”Hello world!”,”content”:”<p>Welcome
   to WordPress. This is your first post. Edit or delete it, then start writing!
   <\/p>\n”,”excerpt”:”<p>Welcome to WordPress. This is your first post. Edit or
   delete it, then start writing!<\/p>\n”,”date”:”2015-09-16 04:24:25″,”modified”:”
   2015-09-16 04:24:25″,”categories”:[],”tags”:[],”author”:{“id”:1,”slug”:”dubevishal_o63666r2″,”
   name”:”dubevishal_o63666r2″,”first_name”:””,”last_name”:””,”nickname”:”dubevishal_o63666r2″,”
   url”:””,”description”:””},”comments”:[{“id”:1,”name”:”Mr WordPress”,”url”:”https:\/\/
   wordpress.org\/”,”date”:”2015-10-26 20:56:43″,”content”:”<p>Hi, this is a comment.
   <br \/>\nTo delete a comment, just log in and view the post's comments. There
   you will have the option to edit or delete them.<\/p>\n”,”parent”:0}],”attachments”:[],”
   comment_count”:1,”comment_status”:”open”,”custom_fields”:{}}]}
 * [https://wordpress.org/plugins/json-api-user/](https://wordpress.org/plugins/json-api-user/)

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

 *  Plugin Author [Ali Qureshi](https://wordpress.org/support/users/parorrey/)
 * (@parorrey)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/json-response-same-for-all-request/#post-6713424)
 * Hi vishdube,
 * what is your call? which endpoint are you calling and with what values?
 *  Thread Starter [vishdube](https://wordpress.org/support/users/vishdube/)
 * (@vishdube)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/json-response-same-for-all-request/#post-6713425)
 * Hi Ali,
 * Please be informed I am using wordpress version 4.3.1. When I use the below URL,
   I get valid response.
 * **URL – [http://www.petraforce.com/wordpress/?json=info](http://www.petraforce.com/wordpress/?json=info)
   
   Response – {“status”:”ok”,”json_api_version”:”1.1.1″,”controllers”:[“core”,”user”]}
 * If I use below url, response is not valid
 * URL- [http://www.petraforce.com/wordpress/?json=get_nonce/?controller=user&method=register](http://www.petraforce.com/wordpress/?json=get_nonce/?controller=user&method=register)
   
   Response – {“status”:”ok”,”count”:1,”count_total”:1,”pages”:1,”posts”:[{“id”:
   1,”type”:”post”,”slug”:”hello-world”,”url”:”http:\/\/www.petraforce.com\/wordpress\/?
   p=1″,”status”:”publish”,”title”:”Hello world!”,”title_plain”:”Hello world!”,”
   content”:”<p>Welcome to WordPress. This is your first post. Edit or delete it,
   then start writing!<\/p>\n”,”excerpt”:”<p>Welcome to WordPress. This is your 
   first post. Edit or delete it, then start writing!<\/p>\n”,”date”:”2015-09-16
   04:24:25″,”modified”:”2015-09-16 04:24:25″,”categories”:[],”tags”:[],”author”:{“
   id”:1,”slug”:”dubevishal_o63666r2″,”name”:”dubevishal_o63666r2″,”first_name”:””,”
   last_name”:””,”nickname”:”dubevishal_o63666r2″,”url”:””,”description”:””},”comments”:[{“
   id”:1,”name”:”Mr WordPress”,”url”:”https:\/\/wordpress.org\/”,”date”:”2015-10-
   26 20:56:43″,”content”:”<p>Hi, this is a comment.<br \/>\nTo delete a comment,
   just log in and view the post's comments. There you will have the option to edit
   or delete them.<\/p>\n”,”parent”:0}],”attachments”:[],”comment_count”:1,”comment_status”:”
   open”,”custom_fields”:{}}]}
 * Feel free to test this on my domain. This is my test site.
 * Thanks
    vishal
 *  Plugin Author [Ali Qureshi](https://wordpress.org/support/users/parorrey/)
 * (@parorrey)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/json-response-same-for-all-request/#post-6713427)
 * call it like this: [http://www.petraforce.com/wordpress/?json=get_nonce&controller=user&method=register](http://www.petraforce.com/wordpress/?json=get_nonce&controller=user&method=register)
 *  Thread Starter [vishdube](https://wordpress.org/support/users/vishdube/)
 * (@vishdube)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/json-response-same-for-all-request/#post-6713431)
 * it works.
 * Few questions –
    1. Why I have to use a different query string for this plugin?
   2. Can I create user without “nonce”? 3. Can I use same “nonce” for all users?
 * I might sound stupid here, but I am not a wordpress developer. I am trying to
   create user on wordpress from salesforce and would like to have it in single 
   request using you plugin.
 * Thanks a lot. Appreciate your quick help.
 * Vishal
 *  Plugin Author [Ali Qureshi](https://wordpress.org/support/users/parorrey/)
 * (@parorrey)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/json-response-same-for-all-request/#post-6713434)
 * 1. You are not using different query string, you are just calling the controller
   in standard way.
 * 2. With the given code of plugin, No, it is there for a reason to stop spamming
   of users registration. But you can edit the plugin and remove the nonce requirement.
 * 3. No, A nonce is a “number used once”. nonce is supposed to be used once. Please
   check nonce documentation. [https://codex.wordpress.org/WordPress_Nonces](https://codex.wordpress.org/WordPress_Nonces)
 * For salesforce integration and user registration, you might need a custom plugin
   solution where your salesforce user will be added in wordpress without nonce 
   but there would be some other api_key protection to secure it from spam.
 * And to get user info, email address instead of user_id should be used because
   user id will be different in both systems. I have custom codeed a similar solution
   for infusionsoft integration.
 *  Thread Starter [vishdube](https://wordpress.org/support/users/vishdube/)
 * (@vishdube)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/json-response-same-for-all-request/#post-6713455)
 * Do you mind sharing the custom solution for my problem. I will try to procure
   the required funds for it.
 * Appreciate you quick help and support for this plugin.
 * Thanks
 *  Plugin Author [Ali Qureshi](https://wordpress.org/support/users/parorrey/)
 * (@parorrey)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/json-response-same-for-all-request/#post-6713456)
 * that custom plugin was built according to specs for infusionsoft integration 
   with WordPress so it won’t work exactly for you.
 * Plz email me your requirements/flow or whatever you want and I will let you know.
 * Thanks
 *  Thread Starter [vishdube](https://wordpress.org/support/users/vishdube/)
 * (@vishdube)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/json-response-same-for-all-request/#post-6713530)
 * Hi,
 * thanks for you help. I was able to make use of your plugin to integrate salesforce
   with wordpress. I appreciate your work and contribution in developing this plugin
   and will highly recommend it in my forums.
 * Thanks
    Vishal

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

The topic ‘JSON response same for all request’ is closed to new replies.

 * ![](https://ps.w.org/json-api-user/assets/icon-256x256.png?rev=1965790)
 * [JSON API User](https://wordpress.org/plugins/json-api-user/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-api-user/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-api-user/)
 * [Active Topics](https://wordpress.org/support/plugin/json-api-user/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-api-user/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-api-user/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [vishdube](https://wordpress.org/support/users/vishdube/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/json-response-same-for-all-request/#post-6713530)
 * Status: resolved