Yeah, I ended up rewriting to use the _id instead.
function authenticated_user($access_token) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.twitch.tv/kraken/user');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Authorization: OAuth '.$access_token
));
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$output = curl_exec($ch);
$response = json_decode($output, true);
curl_close($ch);
return $response;
}
For future searches.
$response[’_id’]