All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kotlin-client.libraries.jvm-volley.auth.apikeyauth.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
     // Api Key auth supports query header and cookie.
     // Query is supported in the path generation only with a hardcoded value.
     // TODO: Not sure about cookie auth form
     // If implementing api key in query parameter use the ^isKeyInHeader property

     {{^nonPublicApi}}{{#explicitApi}}public {{/explicitApi}}{{/nonPublicApi}}val apiKeyAuthHeaderFactoryBuilder = {
          paramName: String, apiKeyPrefix: String?, apiKey: String? -> {
              mapOf(paramName to
                 if (apiKeyPrefix != null) {
                    "$apiKeyPrefix $apiKey"
                 } else {
                     apiKey!!
                 }
             )
         }
     }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy