def request(params, &block)
      start = Time.now

      dummy_params =  {
        expects: params[:expects],
        method: params[:method],
        body: params[:body]
      }

      text.msg "#{text.color('START', :cyan, :bold)}"
      params.each do |pkey, pvalue|
        text.msg("> #{pkey}: #{pvalue}")
      end

      if params[:token].nil?
        @uname = params[:username]
        @pass = params[:password]
        @cred = "#{@uname}:#{@pass}"
        @final_cred64 = Base64.encode64(@cred)

        @final_hash = { creds: "Basic #{@final_cred64}" }

        response = connection_repo.request(dummy_params, &block)
        text.msg("END(#{(Time.now - start)}s)")
      else

        @tokens = params[:token]
        @final_token = { token: "token #{@tokens}" }
        response = connection_token.request(dummy_params, &block)

        puts response.inspect
        text.msg("END(#{(Time.now - start)}s)")
        # reset (non-persistent) connection
        # @connection_token.reset
      end

      response
    end
def request(params, &block)
      start = Time.now

      dummy_params =  {
        expects: params[:expects],
        method: params[:method],
        body: params[:body]
      }

      text.msg "#{text.color('START', :cyan, :bold)}"
      params.each do |pkey, pvalue|
        text.msg("> #{pkey}: #{pvalue}")
      end

      if params[:token].nil?
        @uname = params[:username]
        @pass = params[:password]
        @cred = "#{@uname}:#{@pass}"
        @final_cred64 = Base64.encode64(@cred)

        @final_hash = { creds: "Basic #{@final_cred64}" }

        response = connection_repo.request(dummy_params, &block)
        text.msg("END(#{(Time.now - start)}s)")
      else

        @tokens = params[:token]
        @final_token = { token: "token #{@tokens}" }
        response = connection_token.request(dummy_params, &block)

        puts response.inspect
        text.msg("END(#{(Time.now - start)}s)")
        # reset (non-persistent) connection
        # @connection_token.reset
      end

      response
    end
It is assumed that every API call will NOT use an API_KEY/email.