[PHP] Cannot get cURL to send Client-ID

@SPETSDev What isn’t working? The code you posted works just fine. You simply need to decode and then output what you already have. For example:

<?php
 $channelsApi = 'https://api.twitch.tv/kraken/channels/';
 $channelName = 'somechannel';
 $clientId = 'myClientID';
 $ch = curl_init();
 curl_setopt_array($ch, array(
    CURLOPT_HTTPHEADER => array(
       'Client-ID: ' . $clientId
    ),
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_URL => $channelsApi . $channelName
 ));
 $response = curl_exec($ch);
 curl_close($ch);
 
 $json = json_decode($response, true);
 echo $json['display_name'];
?>