src/Chatkit.php
public function deleteRoom($options)
    {
        if (!isset($options['id'])) {
            throw new MissingArgumentException('You must provide the ID of the room to delete');
        }

        $room_id = rawurlencode($options['id']);

        return $this->apiRequest([
            'method' => 'DELETE',
            'path' => "/rooms/$room_id",
            'jwt' => $this->getServerToken()['token']
        ]);
    }
public function deleteRoom($options)
    {
        if (!isset($options['id'])) {
            throw new MissingArgumentException('You must provide the ID of the room to delete');
        }

        $room_id = rawurlencode($options['id']);

        return $this->apiRequest([
            'method' => 'DELETE',
            'path' => "/rooms/$room_id",
            'jwt' => $this->getServerToken()['token']
        ]);
    }
public function deleteRoom ( $ options ) { if ( ! isset ( $ options [ 'id' ] ) ) { throw new MissingArgumentException ( 'You must provide the ID of the room to delete' ) ; } $ room_id = rawurlencode ( $ options [ 'id' ] ) ; return $ this -> apiRequest ( [ 'method' => 'DELETE' , 'path' => "/rooms/$room_id" , 'jwt' => $ this -> getServerToken ( ) [ 'token' ] ] ) ; }
Deletes a room
Deletes a room