// Runnable example: Bulk WHOIS Lookup (POST /v2.0/bulkwhois/live) // Run it from the Getting Started project: gradle run -PmainClass=BulkWhoisKt // Parameters for bulkWhois (POST /v2.0/bulkwhois/live): // - format (string (one of: json, xml), optional) // - body: BulkWhoisRequest (required): request body object import com.whoisfreaks.client.apis.WHOISApi import com.whoisfreaks.client.infrastructure.ApiClient import com.whoisfreaks.client.models.BulkWhoisRequest fun main() { ApiClient.apiKey["apiKey"] = System.getenv("WHOISFREAKS_API_KEY") // set once, sent with every call val api = WHOISApi() val body = BulkWhoisRequest(domainNames = listOf("whoisfreaks.com", "jfreaks.com")) val result = api.bulkWhois(body) println(result) }