Twitch API returning.... nothing?

Give this a try:

$user;
$channel;
$clientid = “”;

if (isset($_GET[‘user’])) {
$user = $_GET[‘user’];
} else {
echo “Invalid query - user not supplied”;
}

if (isset($_GET[‘channel’])) {
$channel = $_GET[‘channel’];
} else {
echo “Invalid query - channel not specified”;
}
$url = “https://api.twitch.tv/kraken/users/” . $user . “/follows/channels/” . $channel;
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_REFERER, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Client-ID: " . $clientid, “Accept: application/vnd.twitchtv.v3+json”));
$data = curl_exec($ch);
curl_close($ch);
echo $data;`