Method: DocuSign_Admin::Configuration#api_key_with_prefix

Defined in:
lib/docusign_admin/configuration.rb

#api_key_with_prefix(param_name) ⇒ Object

Gets API key (with prefix if set).

Parameters:

  • param_name (String)

    the parameter name of API key auth



177
178
179
180
181
182
183
# File 'lib/docusign_admin/configuration.rb', line 177

def api_key_with_prefix(param_name)
  if @api_key_prefix[param_name]
    "#{@api_key_prefix[param_name]} #{@api_key[param_name]}"
  else
    @api_key[param_name]
  end
end