Skip to main content
    Development & APIs8 min read

    SDK Installation Guide

    Step-by-step instructions for installing and configuring Xharvoc SDKs in your development environment.

    Available SDKs

    Xharvoc provides official SDKs for popular programming languages:

    • JavaScript/TypeScript (Node.js and browser)
    • Python 3.8+
    • Java 11+
    • .NET 6+
    • Go 1.19+

    JavaScript SDK Installation

    bash
    npm install @xharvoc/sdk
    # or
    yarn add @xharvoc/sdk
    typescript
    import { XharvocClient } from '@xharvoc/sdk';
    
    const client = new XharvocClient({
      apiKey: process.env.XHARVOC_API_KEY,
    });
    
    const result = await client.conversations.create({
      initialMessage: 'Hello!',
    });

    Python SDK Installation

    bash
    pip install xharvoc
    python
    from xharvoc import XharvocClient
    
    client = XharvocClient(api_key=os.environ['XHARVOC_API_KEY'])
    
    result = client.conversations.create(
        initial_message='Hello!'
    )

    Configuration

    All SDKs support these configuration options:

    • apiKey: Your Xharvoc API key (required)
    • baseUrl: API endpoint URL (default: api.xharvoc.co.uk)
    • timeout: Request timeout in milliseconds
    • retries: Number of retry attempts for failed requests
    • logger: Custom logging implementation

    Was this article helpful?

    Help us improve our documentation