Open maximilianredt opened 9 years ago
please where you able to fix this error?
thanks
Nope, I wrote a wordpress plugin for my use case instead of using this plugin.
please can you help me with the code below, it is not posting or is your plugin available somewhere?
<?php $options = array ( 'http' => array ( 'ignore_errors' => true, 'method' => 'POST', 'header' => array ( 'Authorization' => 'Basic ' . base64_encode( 'user' . ':' . 'pass' ), ), 'content' => http_build_query( array ( 'title' => 'Hello World', 'content' => 'Hello. I am a test post. I was created by the API', 'tags' => 'tests', 'categories' => 'API', )), ), );
$context = stream_context_create( $options ); $response = file_get_contents( 'http://freeglobaljob.com/wp-json/posts/', false, $context ); $response = json_decode( $response ); ?>
add this plugin https://github.com/WP-API/Basic-Auth
Hi,
I've tried to update a post via:
I get the following error:
Any ideas why?
Thanks!
EDIT: When I debug the Request it looks like the API throws up the following error:
There is a revision of this post that is more recent.
Which does not really make sense, because I just added the entry two lines earlier, does it?