pimedia / json-api-user

JSON API User is a plugin, that supports the JSON API Plugin with a new Controller to allow user registration.
http://www.parorrey.com
17 stars 13 forks source link

Unknown controller Error #10

Open raffaelecolleo opened 6 years ago

raffaelecolleo commented 6 years ago

When trying to get the nonce with https://domain.com/api/get_nonce?controller=user&method=generate_auth_cookie, I get the following error

{"status":"error","error":"Unknown controller 'user'."}

Any Idea?

raffaelecolleo commented 6 years ago

So I've checked the info on the website for the User Plus plugin and it's working. I am able to generate auth cookie and to validate auth cookie but still cannot get the nonce using the info you have on the Plus version website page.

Now the error is: https://www.domain.com/api/get_nonce?controller=userplus&method=new_post {"status":"error","error":"Unknown method 'new_post'."}

pimedia commented 6 years ago

It is add_post, not new_post. Please correct that typo. Please send me an email and i will send you update version where few bugs have been removed and some new endpoints for custom post types. On Thursday, April 26, 2018, 1:13:54 PM GMT+5, raffaelecolleo notifications@github.com wrote:

So I've checked the info on the website for the User Plus plugin and it's working. I am able to generate auth cookie and to validate auth cookie but still cannot get the nonce using the info you have on the Plus version website page.

Now the error is: {"status":"error","error":"Unknown method 'new_post'."}

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

pimedia commented 6 years ago

This error appears when the controller is not activated. Please activate the controller from Admin > Settings > JSON API On Thursday, April 26, 2018, 12:03:20 PM GMT+5, raffaelecolleo notifications@github.com wrote:

When trying to get the nonce with https://domain.com/api/get_nonce?controller=user&method=generate_auth_cookie, I get the following error

{"status":"error","error":"Unknown controller 'user'."}

Any Idea?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.