Getting Started
Learn how to integrate and use the Eseni platform. This guide will walk you through installation and basic usage patterns.
1. Install SDK
bash
npm install @eseni/core
2. Initialize SDK
JavaScript
import { EseniSDK } from '@eseni/core'; const client = EseniSDK.init({ apiKey: 'your-api-key-here', environment: 'sandbox' }); // Simple usage example try { const response = await client.api.ping(); console.log('SDK Ready:', response); } catch (err) { console.error('Init Error:', err); }
Click the "Show Starter Code" button above to see example code
3. Configuration
Configure the SDK with environment variables in your development and production environments.
Use .env file for secrets
Set ESNI_ENV=production for live