public function init(array $options = [])
    {
        if (!$this->isOnline()) {
            return false;
        }

        // Merge $options with Config settings.
        $options = $this->mergeConfig($options);
        $room = $this->createRoom(
            $options['room_name'],
            $options['owner_user_id']
        );

        // Split the hash from the room's Guest Access URL
        $room->hipsupport_hash = $this->getHashFromUrl($room->guest_access_url);

        // Append the HipChat web client parameters.
        $room->hipsupport_url = $this->appendUrlOptions(
            $room->guest_access_url,
            $options
        );

        // Notify the given room that a new room has been created.
        $this->notify($options, $room);

        return $room;
    }
public function init(array $options = [])
    {
        if (!$this->isOnline()) {
            return false;
        }

        // Merge $options with Config settings.
        $options = $this->mergeConfig($options);
        $room = $this->createRoom(
            $options['room_name'],
            $options['owner_user_id']
        );

        // Split the hash from the room's Guest Access URL
        $room->hipsupport_hash = $this->getHashFromUrl($room->guest_access_url);

        // Append the HipChat web client parameters.
        $room->hipsupport_url = $this->appendUrlOptions(
            $room->guest_access_url,
            $options
        );

        // Notify the given room that a new room has been created.
        $this->notify($options, $room);

        return $room;
    }
public function init ( array $ options = [ ] ) { if ( ! $ this -> isOnline ( ) ) { return false ; } // Merge $options with Config settings. $ options = $ this -> mergeConfig ( $ options ) ; $ room = $ this -> createRoom ( $ options [ 'room_name' ] , $ options [ 'owner_user_id' ] ) ; // Split the hash from the room's Guest Access URL $ room -> hipsupport_hash = $ this -> getHashFromUrl ( $ room -> guest_access_url ) ; // Append the HipChat web client parameters. $ room -> hipsupport_url = $ this -> appendUrlOptions ( $ room -> guest_access_url , $ options ) ; // Notify the given room that a new room has been created. $ this -> notify ( $ options , $ room ) ; return $ room ; }
Initiate HipSupport chat session. Create new room,
return the web client URL to the room.

@param array $options
@return stdClass|boolean
Initiate HipSupport chat session . Create new room return the web client URL to the room .