// Runnable example: IP Geolocation Lookup (GET /v1.0/geolocation) // Run it from the Getting Started project: gradle run -PmainClass=GeolocationKt // Parameters for geolocation (GET /v1.0/geolocation): // - ip (string, required) import com.whoisfreaks.client.apis.GeolocationApi import com.whoisfreaks.client.infrastructure.ApiClient fun main() { ApiClient.apiKey["apiKey"] = System.getenv("WHOISFREAKS_API_KEY") // set once, sent with every call val api = GeolocationApi() val result = api.geolocation("8.8.8.8") println(result) }