my new site don’t get permission to post create from third party site
-
i am creating the new post from third party app. using developer code to create new post on site. but my newly created three website don’t get permission to create new post from thrid party.my below code is
$options = array (
‘http’ =>
array (
‘ignore_errors’ => true,
‘method’ => ‘POST’,
‘header’ =>
array (
0 => ‘authorization: Bearer ‘.$Wordpresscom_list[‘oauth_token’],
1 => ‘Content-Type: application/x-www-form-urlencoded’,
),
‘content’ =>
http_build_query( array (
‘title’ => $alabdata[‘titletext’],
‘content’ => $alabdata[‘articleHTML’],
‘status’ => ‘publish’,
)),
),
);$context = stream_context_create( $options );
$response = file_get_contents(
‘https://public-api.wordpress.com/rest/v1.2/sites/’.$Wordpresscom_list[‘site_id’].’/posts/new/’,
false,
$context
);
$response = json_decode( $response );The blog I need help with is: (visible only to logged in users)
-
Hi there,
It seems that you’re in the wrong support forum. You are using the self-hosted version of WordPress rather than WordPress.com. WordPress.com forum helps the sites hosted on WordPress.com only.
Please contact your hosting provider or ask your question here: https://wordpress.org/support/forum/miscellaneous/#new-post
Note the difference here between .com and .org
Hope this helps .
Thanks!
- The topic ‘my new site don’t get permission to post create from third party site’ is closed to new replies.