// Runnable example: SSL Certificate Lookup (GET /v1.0/ssl/live) // Run it from the Getting Started project: gradle run -PmainClass=SslLookupKt // Parameters for sslLookup (GET /v1.0/ssl/live): // - domainName (string, required) // - chain (boolean, optional) // - sslRaw (boolean, optional) // - format (string (one of: json, xml), optional) import com.whoisfreaks.client.apis.SSLApi import com.whoisfreaks.client.infrastructure.ApiClient fun main() { ApiClient.apiKey["apiKey"] = System.getenv("WHOISFREAKS_API_KEY") // set once, sent with every call val api = SSLApi() val result = api.sslLookup("whoisfreaks.com") println(result) }