I need help with obtaining channel name (title). I want to do it with json_decode
but I don't know how. Please help me :) Thank you :)
$url="https://www.googleapis.com/youtube/v3/channels?part=snippet&forUsername=$youtubechannel&key=YOUR_KEY&getJSON";
$json = file_get_contents($url);
$json_result = json_decode($json, TRUE);
$raw_channel_name = $json_result->results[0];
$channel_name = $raw_channel_name->title;
echo $channel_name;