Kotlin SDK
Installation
Add the dependency to your build.gradle.kts:
dependencies {
implementation("com.apialerts:apialerts-kotlin:1.0.0")
}
Usage
import com.apialerts.ApiAlerts
val client = ApiAlerts("YOUR-API-KEY")
// Simple notification
client.send(message = "Deployment successful")
// With all options
client.send(
message = "New user signed up",
channel = "developers",
link = "https://dashboard.example.com/users/123",
tags = listOf("signup", "organic"),
)