// Runnable example: Live WHOIS Lookup (GET /v2.0/whois/live) // Run it from the Getting Started project: gradle run -PmainClass=WhoisLiveKt // Parameters for whoisLive (GET /v2.0/whois/live): // - domainName (string, required) // - format (string (one of: json, xml), optional) import com.whoisfreaks.client.apis.WHOISApi import com.whoisfreaks.client.infrastructure.ApiClient fun main() { ApiClient.apiKey["apiKey"] = System.getenv("WHOISFREAKS_API_KEY") // set once, sent with every call val api = WHOISApi() val result = api.whoisLive("whoisfreaks.com") println(result) }