Development & APIs8 min read
SDK Installation Guide
Step-by-step instructions for installing and configuring Xharvoc SDKs in your development environment.
In this article
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/sdktypescript
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 xharvocpython
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
Related Articles
API Documentation
Comprehensive documentation for Xharvoc's REST APIs, including authentication, endpoints, and examples.
Webhooks & Events
Learn how to set up and handle webhooks to receive real-time notifications from Xharvoc services.
Custom Development
Guidelines and best practices for extending Xharvoc solutions with custom development.