# SDKs & Libraries

## JavaScript/TypeScript SDK

### Installation

```bash
npm install @license-authority/sdk
```

### Usage

```typescript
import { LicenseClient } from '@license-authority/sdk';

const client = new LicenseClient({
  baseUrl: 'https://api.license.gov.in/v1',
  clientId: 'your-client-id',
  clientSecret: 'your-client-secret'
});

// Submit application
const application = await client.applications.create({
  licenseType: 'TRADE_LICENSE',
  applicantId: 'DL-12345678',
  data: { ... }
});

// Check status
const status = await client.applications.getStatus(application.id);

// Verify certificate
const verification = await client.certificates.verify('GOA/TRADE/2026/00001');
```

## Python SDK

### Installation

```bash
pip install license-authority-sdk
```

### Usage

```python
from license_authority import LicenseClient

client = LicenseClient(
    base_url='https://api.license.gov.in/v1',
    client_id='your-client-id',
    client_secret='your-client-secret'
)

# Submit application
application = client.applications.create(
    license_type='TRADE_LICENSE',
    applicant_id='DL-12345678',
    data={...}
)

# Check status
status = client.applications.get_status(application['id'])

# Verify certificate
result = client.certificates.verify('GOA/TRADE/2026/00001')
```

## Java SDK

### Maven

```xml
<dependency>
  <groupId>gov.in.license</groupId>
  <artifactId>license-authority-sdk</artifactId>
  <version>1.0.0</version>
</dependency>
```

### Usage

```java
LicenseClient client = new LicenseClient.Builder()
    .baseUrl("https://api.license.gov.in/v1")
    .credentials("client-id", "client-secret")
    .build();

Application app = client.applications()
    .create("TRADE_LICENSE", "DL-12345678", data);

VerificationResult result = client.certificates()
    .verify("GOA/TRADE/2026/00001");
```
