public function mute($channelId, $direction)
    {
        $uri = "channels/$channelId/mute";
        try {
            $this->client->getEndpoint()->post($uri, [
                'form_params' => [
                    'direction' => $direction,
                ]
            ]);
        } catch (RequestException $e) {
            $this->processRequestException($e);
        }
    }
public function mute($channelId, $direction)
    {
        $uri = "channels/$channelId/mute";
        try {
            $this->client->getEndpoint()->post($uri, [
                'form_params' => [
                    'direction' => $direction,
                ]
            ]);
        } catch (RequestException $e) {
            $this->processRequestException($e);
        }
    }
public function mute ( $ channelId , $ direction ) { $ uri = "channels/$channelId/mute" ; try { $ this -> client -> getEndpoint ( ) -> post ( $ uri , [ 'form_params' => [ 'direction' => $ direction , ] ] ) ; } catch ( RequestException $ e ) { $ this -> processRequestException ( $ e ) ; } }
Mute a channel.

@param string $channelId Channel's id
@param string $direction (default both) Direction in which to mute audio.  Allowed values: both, in, out
@throws NotFoundException
@throws ConflictException
Mute a channel .