I try to open this url in my browser or calling from my frontend application:
http://78.47.177.214/blog/api/get_nonce/?controller=posts&method=create_post
i keep getting the response
{"status":"error","error":"Include 'controller' and 'method' vars in your request."}
what is wrong, I want to be able to create a custom post type with custom fields in the end but using json api I need nonce first
1 Answer
You need to call like below.
API call:-
http://78.47.177.214/blog/api/get_nonce/?json=get_nonce&controller=posts&method=create_post
Responce:-
{"status":"ok","controller":"posts","method":"create_post","nonce":"92f31d49b5"}