# VejalNai SDKs

These lightweight clients call the same production widget API used by the web widget:

```txt
POST /api/widget/messages
```

Supported `platform` values:

- `web`
- `android`
- `ios`
- `flutter`
- `react-native`

## Android

Use `sdk/android/VejalNaiChatClient.kt` in your Android app.

```kotlin
val client = VejalNaiChatClient(
    baseUrl = "https://support.example.com",
    widgetKey = "YOUR_WIDGET_KEY",
    visitorId = "customer-123",
)

val response = client.sendMessage("delivery charge koto?")
```

## iOS

Use `sdk/ios/VejalNaiChatClient.swift` in your iOS app.

```swift
let client = VejalNaiChatClient(
    baseURL: URL(string: "https://support.example.com")!,
    widgetKey: "YOUR_WIDGET_KEY",
    visitorId: "customer-123"
)

let response = try await client.sendMessage("delivery charge koto?")
```

## Other Platforms

Use the REST API directly and set `platform` to `flutter`, `react-native`, or `web`.
