src/Chatkit.php
public function getReadCursorsForRoom($options)
    {
        if (!isset($options['room_id'])) {
            throw new MissingArgumentException('You must provide the ID of the room that you want the read cursors for');
        }

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

        return $this->cursorsRequest([
            'method' => 'GET',
            'path' => "/cursors/0/rooms/$room_id",
            'jwt' => $this->getServerToken()['token']
        ]);
    }
public function getReadCursorsForRoom($options)
    {
        if (!isset($options['room_id'])) {
            throw new MissingArgumentException('You must provide the ID of the room that you want the read cursors for');
        }

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

        return $this->cursorsRequest([
            'method' => 'GET',
            'path' => "/cursors/0/rooms/$room_id",
            'jwt' => $this->getServerToken()['token']
        ]);
    }
public function getReadCursorsForRoom ( $ options ) { if ( ! isset ( $ options [ 'room_id' ] ) ) { throw new MissingArgumentException ( 'You must provide the ID of the room that you want the read cursors for' ) ; } $ room_id = rawurlencode ( $ options [ 'room_id' ] ) ; return $ this -> cursorsRequest ( [ 'method' => 'GET' , 'path' => "/cursors/0/rooms/$room_id" , 'jwt' => $ this -> getServerToken ( ) [ 'token' ] ] ) ; }
Get all read cursors for a room

@param array $options
[Available Options]
• room_id (string|required): Represents the ID of the room that you want to get the read cursors for.
@return array
@throws ChatkitException or MissingArgumentException
Get all read cursors for a room