public function putChannel($channel, $rawOptions, $token = null)
    {
        $options = [];

        foreach ($rawOptions as $key => $value) {
            $options['channel['.$key.']'] = $value;
        }

        return $this->sendRequest('PUT', 'channels/'.$channel, $this->getToken($token), $options);
    }
public function putChannel($channel, $rawOptions, $token = null)
    {
        $options = [];

        foreach ($rawOptions as $key => $value) {
            $options['channel['.$key.']'] = $value;
        }

        return $this->sendRequest('PUT', 'channels/'.$channel, $this->getToken($token), $options);
    }
public function putChannel ( $ channel , $ rawOptions , $ token = null ) { $ options = [ ] ; foreach ( $ rawOptions as $ key => $ value ) { $ options [ 'channel[' . $ key . ']' ] = $ value ; } return $ this -> sendRequest ( 'PUT' , 'channels/' . $ channel , $ this -> getToken ( $ token ) , $ options ) ; }
Update channel.

@param string $channel Channel name
@param array  $options Channel options
@param string $token   Twitch token

@return JSON Request result
Update channel .