def validate_api_param
      set_valid(true)
      if @api_key.nil? || @api_key.empty? || @password.nil? || @password.empty?
        add_error_code(Constants::API_KEY_INVALID_ERROR_CODE)
        set_valid(false)
      end
      if @rapid_endpoint.nil? || @rapid_endpoint.empty?
        add_error_code(Constants::LIBRARY_NOT_HAVE_ENDPOINT_ERROR_CODE)
        set_valid(false)
      end
      if @is_valid
        begin
          parser_endpoint_to_web_url
          unless @list_error.nil?
            @list_error.clear
          end
          set_valid(true)
          @logger.info "Initiate client using [#{@web_url}] successful!" if @logger
        rescue => e
          @logger.error "Error setting Rapid endpoint #{e.backtrace.inspect}" if @logger
          set_valid(false)
          add_error_code(Constants::LIBRARY_NOT_HAVE_ENDPOINT_ERROR_CODE)
        end
      else
        @logger.warn 'Invalid parameter passed to Rapid client' if @logger
      end
    end
def validate_api_param
      set_valid(true)
      if @api_key.nil? || @api_key.empty? || @password.nil? || @password.empty?
        add_error_code(Constants::API_KEY_INVALID_ERROR_CODE)
        set_valid(false)
      end
      if @rapid_endpoint.nil? || @rapid_endpoint.empty?
        add_error_code(Constants::LIBRARY_NOT_HAVE_ENDPOINT_ERROR_CODE)
        set_valid(false)
      end
      if @is_valid
        begin
          parser_endpoint_to_web_url
          unless @list_error.nil?
            @list_error.clear
          end
          set_valid(true)
          @logger.info "Initiate client using [#{@web_url}] successful!" if @logger
        rescue => e
          @logger.error "Error setting Rapid endpoint #{e.backtrace.inspect}" if @logger
          set_valid(false)
          add_error_code(Constants::LIBRARY_NOT_HAVE_ENDPOINT_ERROR_CODE)
        end
      else
        @logger.warn 'Invalid parameter passed to Rapid client' if @logger
      end
    end
Validates the Rapid API key, password and endpoint