// Сгенерировал на http://incarnate.github.io/curl-to-php/
$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, "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"shows.GetById\",\n \"params\": {\n \"showId\": 1,\n \"withEpisodes\": true\n },\n \"id\": 1\n}");
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);