If you are planning to use WordPress not just as as web app but also for your iOS and Android Mobile apps, check JSON API User Plus Plugin. JSON API User Plus Plugin allows you to use WordPress and BuddyPress (not all features yet, check the documentation for available endpoints) via REST API.
JSON API User Plus Plugin has been updated today with version 1.1.0. Details of the added & updated endpoints are following:
Version 1.1.0
- Added the function to authenticate, allow the user (with edit rights) to use JSON API core controllers as well.
- Updated `generate_auth_cookie` to allow setting up auth cookie for any required duration. Just provide the `seconds` var with `nonce`, `username` and `password` to get required cookie. Default time is 14 days.
- Updated `register` to allow disabling notification email to user after registration. Provide `notify` var with value ‘no’ while registering and it won’t send email. You must provide `user_pass` var (which is optional otherwise) to use this because password is sent in the email. Without `user_pass` var, this won’t make sense disabling notification so it won’t.
- Fixed typos in documentation and added new documentation.
Please refer to the documentation for more details.
Hope that helps. Cheers!
Wow fast response thanks. What feature sets are finished and what feature sets do you have a roadmap for more?
please see this page for available endpoints. JSON API User Plus and this for JSON API User free version.
Plus version allows you to secure all REST calls with api key. In addition to that, a new ‘secret’ var is added which allows you to restrict any endpoint (select-able from settings page) with this additional variable. Many people had requested this feature so that they could secure some selected endpoints only to be used by admin with ‘secret’ key. This secret key version will be released shortly, being tested.
Plus, and to some extent free version, allows you to view and update WordPress and BuddyPress user profile via REST calls. WordPress profile fields are updated by update_user_meta and BuddyPress’s by xprofile_update endpoints. Plus version also supports BP avatar upload and Messages component among many other features.
I have planned to add all BuddyPress components one by one, groups, activity, friends, etc but for now, you can manage user profile related features and Messages component very easily.
how did it work out for you? Did the services hold up
I have used WordPress and BP for several projects and WP works well for Mobile apps (and other js apps) with JSON API plugins. And judging from the response, many are using these API plugins.
Could you help me? because i want to learn how to post with WP REST API JSON from android to wordpress? I don’t find a suitable tutorials about this…..
your help will be appreciated.
Hi Marwan,
Adding a post using REST APi is only possible with JSON API User Plus https://www.parorrey.com/solutions/json-api-user-plus/. Please look ‘new_post’ endpoint.