Sorry for a late reply
that’s the thing i aint getting no error now I’ve got home its just blank empty not giving me any message at all now or any kind of response
$client_id = ';
$ch = curl_init('https://api.twitch.tv/helix/videos?user_id=VosanCo');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Client-ID: ' . $client_id,
'Authorization: Bearer '
));
$r = curl_exec($ch);
$i = curl_getinfo($ch);
curl_close($ch);
if ($i['http_code'] == 200) {
$videos = json_decode($r);
if (json_last_error() == JSON_ERROR_NONE) {
print_r($videos);
} else {
$error = 'An Error ocucred at Parsing the vidoes response';
}
} else {
$error = 'An Error occured fetching the vidoes';
}