You should be getting nonce value like this:
http://localhost/api/get_nonce/?controller=user&method=register
because you intend to use the nonce with user controller, register method.
it is also mentioned in Notes.
Thanks, I didn’t realise you needed to state the method you were going to use.
Can you please post the link to the notes. I couldnt find them.
Hello,
I have a similar problem but I am not sure what I am doing wrong.
First I send the request with following url :
http://mysite.com/api/get_nonce/?controller=posts&method=create_post
Response :
{
“status”: “ok”,
“controller”: “posts”,
“method”: “create_post”,
“nonce”: “0c3ce057bc”
}
Then I use this nonce to generate auth_cookie using this url :
http://mysite.com/api/auth/generate_auth_cookie/
and I get :
{
“status”: “error”,
“error”: “Your ‘nonce’ value was incorrect. Use the ‘get_nonce’ API method.”
}
I am posting the nonce so its not in the url . Thats not the issue as all other webservices are working ok with POST rather then GET.
I am pretty sure this was working before. I am trying this after a few days and this is all I get. Can you please help in this regard?
i created a test site in wp using json plugin
my goal is to setup an android app with app inventor2 to populate the website with posts.
any suggestion on how to do this? links, documentations or whatever are more than welcome
thnx
Hi,
For extending JSON API plugin and its usage examples, see its documentation here https://wordpress.org/plugins/json-api/other_notes/ or check its forums.
This forum is not the right place for JSON API questions.