usr registration
-
can u tell me all fiow of new user egistration
-
Method: register
https://localhost/api/user/register/?username=john&[email protected]&nonce=8bdfeb4e16&display_name=JohnTo register user & get valid cookie for 100 seconds: https://localhost/api/user/register/?username=john&[email protected]&nonce=8bdfeb4e16&display_name=John&seconds=100
Optional fields: ‘user_pass’, ‘user_nicename’, ‘user_url’, ‘nickname’, ‘first_name’, ‘last_name’, ‘description’
Please make sure you provide valid values that these fields expect in correct format.
To disbale registration email notification to user:
Please see documentation here https://www.ads-software.com/plugins/json-api-user/other_notes/
i will try this url
https://localhost/wordpress/api/user/register/?username=john&[email protected]&nonce=8bdfeb4e16&display_name=Johnbut user can’t register and error will be show {“status”:”error”,”error”:”Unknown controller ‘user’.”}
https://localhost/wordpress/api/user/register/?username=john&[email protected]&nonce=6b60f9681f&display_name=John will try this link and pur new nonce then will be error show
link :- https://localhost/wordpress/api/user/register/?username=john&[email protected]&nonce=6b60f9681f&display_name=Johneooer in json :- {“status”:”error”,”error”:”Unknown controller ‘user’.”}
please give me response early . i am waiting your respopnse
Hi Deepak,
if you are getting this error > Unknown controller ‘user’
It clearly means that JSON API User contrtoller is not activated yet. Make sure you have installed JSON API User plugin and activated via Settings > JSON API page.
I’m getting the same reponse on a clean install, i can take a picture if you would like its installed and activated…..
Hi,
I have just tested it again, installed the latest version from here and it worked without any issues..
https://localhost/api/user/register/
got this response >>
{"status":"error","error":"You must include 'username' var in your request. "}
Make sure, you have php 5.3+ version, ‘JSON API’ plugin installed and User Controller activated from Settings > JSON API
5.2.4 or greater is btw WordPress requirement:
https://www.ads-software.com/about/requirements/
To run WordPress your host just needs a couple of things:
PHP version 5.2.4 or greater (recommended: PHP 5.4 or greater)
Hi,
I have installed the plugin as mentioned in the installation process. But, when I try to register a new user it shows the following error.
“{“status”:”error”,”error”:”Invalid access, unverifiable ‘nonce’ value. Use the ‘get_nonce’ Core API method. “}”
Please suggest how to register a user through REST API.
nonce can be created by calling if you are registering user. https://localhost/api/get_nonce/?controller=user&method=register
You can then use ‘nonce’ value to register user like this:
Thanks Ali for your quick reply and it worked.
my server’s php version is 5.6.12. I have installed plugins “JSON API” as well as “JSON API User” and activated both. Also I could get the nonce using the url https://mydomain/test/api/get_nonce/?controller=user&method=register.
I tried to register with the following url according to your suggestion
https://mydomain/test/api/User/register/?username=john&[email protected]&nonce=a1c34ed402&display_name=JohnBut when I am getting the following error
“{
“status”: “error”,
“error”: “Unknown controller ‘user’.”
}”
please let me know what should I do to get it work properly.Thanks in advance
Vaskartry this:
https://mydomain/test/api/user/register/?username=john&[email protected]&nonce=a1c34ed402&display_name=John
You are using ‘User’ not user in url.
Hello Ali,
Thanks a lot for your reply.
I tried with both small and capital ‘U’, but still facing the same issue. and getting the error
{“status”:”error”,”error”:”Unknown controller ‘user’.”}Please guide me how to resolve the issue.
Thanks in advance
Vaskarare the other JSON API controllers working? like respond? widgets? posts?
Hello ALi,
Thanks a lot for your reply. It worked for me. Now my question is how can I update user using your API. Please give me the url for updating user.
Thanks and Regards
Vaskar
- The topic ‘usr registration’ is closed to new replies.