• Resolved renanverri

    (@renanverri)


    Realy this error disturb me for 2 months x.x

    i call to get nonce via api

    /api/get_nonce/?controller=posts&method=create_post&callback=angular.callbacks._h

    response from server are ok …

    angular.callbacks._h({“status”:”ok”,”controller”:”posts”,”method”:”create_post”,”nonce”:”18nonce2015″})

    Second …

    /api/create_post/?nonce=18nonce2015&title=Testing%20create%20post&content=Testing%20create%20post&status=draft&cookie=renanxxxx|151920xxxx|EqOe304vAtZt0BQif0cpreiDDtH4ZjvHLOv5VhpKcCr|c5bca738d82d6e8f88f23b88e5defbaead4120194c46386xxxxxxxxxx2&insecure=cool&callback=angular.callbacks._i

    Response from server

    angular.callbacks._i({“status”:”error”,”error”:”Your ‘nonce’ value was incorrect. Use the ‘get_nonce’ API method.”})

    i tryed lot thing but give the same erro x.x ”your nonce value as incorrect”

    but i used nonce generated on first request lol

    i think its a bug on wp recent version or i dont know what to do ;(

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ali Qureshi

    (@parorrey)

    Hi,

    JOSN API create_post does not allow creating post if you are not logged in, which means, no REST create_post, only for logged in user for that session and that too with admin permission.

    You need JSON API User Plus for adding post for RESTful. https://www.parorrey.com/solutions/json-api-user-plus/

    Thread Starter renanverri

    (@renanverri)

    i looged in and cookies are ok =/

    you plugin ”plus” for me is to high only for studies bro

    Plugin Author Ali Qureshi

    (@parorrey)

    Plz note JSON API is different plugin and you should check its own forums for its create_post endpoint.

    But I can tell you, it does not allow REST call for creating post.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Your ‘nonce’ value was incorrect. Use the ‘get_nonce’ API method.’ is closed to new replies.