[Plugin: JSON API] posting through API via curl
-
First off, I would like to say that this plugin is the bomb! Anyways aside from it being so awesome, I’m having trouble using
create_post
method via curl in php. I have created a class to access the API via cURL and will will log me via curl if necessary. I seem to have all the cookies required for authentication in my cookie jar but I keep getting the following error from the API “You need to login with a user capable of creating posts”. Does anyone know why I keep getting this error? I noticed that thewordpress_logged_in cookie
is prefixed with#HttpOnly_[domain]
, is it possible that curl ignores these values? If cURL is ignoring this how can I resolve this issue? Any input is greatly appreciated, I need this working ASAP to complete a project.
- The topic ‘[Plugin: JSON API] posting through API via curl’ is closed to new replies.