$gameName = htmlspecialchars($_POST['name1']);
$channelsApi3 = 'https://api.twitch.tv/helix/games?name=';
$clientId = 'xxx';
$ch3 = curl_init();
$apiVers3 = '&api_version=5';
$uri3 = '&redirect_uri=https://smartsblog.optimal-options.de/';
curl_setopt_array($ch3, array(
CURLOPT_HTTPHEADER => array(
'Client-ID: ' . $clientId,
'Authorization: Bearer ' . $token
),
CURLOPT_RETURNTRANSFER => true,
CURLOPT_URL => $channelsApi3 . urlencode($gameName) . $apiVers3 . $uri3
));
$response3 = curl_exec($ch3);