Installation

Installation

System Requirements

  • Node.js 18.17.1 or higher

Install the SDK

npm install lootex

Quick Start

import { createLootexClient } from 'lootex';
 
// Initialize the client
export const lootex = createLootexClient({
  apiKey: 'your_api_key',
  environment: 'development',
  customHeaders: {
    'referer': 'https://your_domain' // only required in server side
  }
});
 
// If you need to interact with Lootex API endpoints directly
export const lootexApiClient = createApiClient({
  client: lootex
})