public function postCommercial($channel, $length = 30, $token = null)
    {
        $availableOptions = ['length'];
        $options = ['length' => $length];

        return $this->sendRequest('POST', 'channels/'.$channel.'/commercial', $this->getToken($token), $options, $availableOptions);
    }
public function postCommercial($channel, $length = 30, $token = null)
    {
        $availableOptions = ['length'];
        $options = ['length' => $length];

        return $this->sendRequest('POST', 'channels/'.$channel.'/commercial', $this->getToken($token), $options, $availableOptions);
    }
public function postCommercial ( $ channel , $ length = 30 , $ token = null ) { $ availableOptions = [ 'length' ] ; $ options = [ 'length' => $ length ] ; return $ this -> sendRequest ( 'POST' , 'channels/' . $ channel . '/commercial' , $ this -> getToken ( $ token ) , $ options , $ availableOptions ) ; }
Run commercial.

@param string $channel Channel name
@param number $length  Commercial length
@param string $token   Twitch token

@return JSON Request result
Run commercial .