src/ApiClient.php
public function getChannelById($id)
    {
        return $this->apiCall('channels.info', [
            'channel' => $id,
        ])->then(function (Payload $response) {
            return new Channel($this, $response['channel']);
        });
    }
public function getChannelById($id)
    {
        return $this->apiCall('channels.info', [
            'channel' => $id,
        ])->then(function (Payload $response) {
            return new Channel($this, $response['channel']);
        });
    }
public function getChannelById ( $ id ) { return $ this -> apiCall ( 'channels.info' , [ 'channel' => $ id , ] ) -> then ( function ( Payload $ response ) { return new Channel ( $ this , $ response [ 'channel' ] ) ; } ) ; }
Gets a channel by its ID.

@param string $id A channel ID.

@return \React\Promise\PromiseInterface A promise for a channel object.
Gets a channel by its ID .