SDK Quickstart

Kotlin SDK Quickstart

Install dev.khaleejiapi:khaleejiapi-sdk, configure your API key, and make your first authenticated API call.

1) Install

bash
dependencies {
implementation("dev.khaleejiapi:khaleejiapi-sdk:1.0.0")
}

2) Environment variable setup

text
KHALEEJI_API_KEY=your_api_key_here

3) Minimal working example

kotlin
import dev.khaleejiapi.KhaleejiAPI
val apiKey = System.getenv("KHALEEJI_API_KEY")
?: error("Missing KHALEEJI_API_KEY")
val client = KhaleejiAPI(apiKey)
val result = client.validation.validateEmail("[email protected]")
println(result.valid)

Next steps

Test your key with a real endpoint from the API reference.

Use retries/rate-limit handling for production workloads.

Review authentication and rate limits before going live.