public static function message($token, $room, $msg, $from = null, $color = null)
    {

        if (!empty($token)) {
            static::setToken($token);
        }
        static::setMessage($msg, $from, $color);

        $roomAPI = static::getRoomAPI();
        $message = static::getMessage();

        $roomAPI->sendRoomNotification($room, $message);
    }
public static function message($token, $room, $msg, $from = null, $color = null)
    {

        if (!empty($token)) {
            static::setToken($token);
        }
        static::setMessage($msg, $from, $color);

        $roomAPI = static::getRoomAPI();
        $message = static::getMessage();

        $roomAPI->sendRoomNotification($room, $message);
    }
public static function message ( $ token , $ room , $ msg , $ from = null , $ color = null ) { if ( ! empty ( $ token ) ) { static :: setToken ( $ token ) ; } static :: setMessage ( $ msg , $ from , $ color ) ; $ roomAPI = static :: getRoomAPI ( ) ; $ message = static :: getMessage ( ) ; $ roomAPI -> sendRoomNotification ( $ room , $ message ) ; }
Send room notification

@param string  $token OAuth2 token from HipChat
@param integer $room  ID of the room
@param string  $msg   HTML message
@param string  $from  From who the message is
@param string  $color Color (red, yellow, green, purple, gray)

@return void
Send room notification