$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.myshows.me/v2/rpc/");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(array('method'=>'shows.GetById','другие данные из запроса')));
curl_setopt($ch, CURLOPT_POST, 1);
$headers = array();
$headers[] = "Content-Type: application/json";
$headers[] = "Accept: application/json";
$headers[] = "Authorization: Bearer 859ea2450228a5d655e3a8c2f9a5aedc30b591df";
$headers[] = "Accept-Language: en";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);