Skip to content

Latest commit

 

History

History
70 lines (49 loc) · 1.51 KB

README.md

File metadata and controls

70 lines (49 loc) · 1.51 KB

Kusion API Client SDK

A TypeScript SDK for interacting with the Kusion Server API.

Installation

Using npm:

npm install @kusionstack/kusion-api-client-sdk

Using yarn:

yarn add @kusionstack/kusion-api-client-sdk

Quick Start

import { client, SourceService } from '@kusionstack/kusion-api-client-sdk';

// Configure the client
client.setConfig({
    baseUrl: 'http://localhost:80'
});

// Use the SDK
async function example() {
    try {
        const sources = await SourceService.listSource();
        console.log('Sources:', sources.data);
    } catch (error) {
        console.error('Error:', error);
    }
}

Features

  • 🔒 Type-safe API interactions
  • 🚀 Promise-based async operations
  • ⚡️ Modern TypeScript support
  • 🛠 Built-in error handling

Documentation

Visit our API documentation For examples, please refer to:

Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

License

This project is licensed under the Apache License 2.0.

Support

If you encounter any issues or have questions:

Related Projects