
こんにちは。
気になって、もう少しコードを見直したところ、headerの指定を修正することでうまく動きました。
$headers = array( ‘Authorization’ => ‘Brearer ‘.$access_token ,
‘Content-type’ => ‘application/json’
を
$headers = array( ‘Authorization:Brearer ‘.$access_token ,
‘Content-type:application/json’
に修正。
https://www.php.net/manual/ja/function.curl-setopt.php
お試しください!