Client Setup
Configure the Limitry TypeScript client
Configure the Limitry TypeScript client with your API key and options.
Basic Setup
import { Client } from '@limitry/sdk';
const client = new Client({
apiKey: 'your-api-key',
});Configuration Options
const client = new Client({
apiKey: 'your-api-key',
baseURL: 'https://api.limitry.com/v1', // Custom base URL
timeout: 60000, // Request timeout in milliseconds
headers: { 'X-Custom-Header': 'value' }, // Custom headers
});Using Environment Variables
const client = new Client({
apiKey: process.env.LIMITRY_API_KEY!,
});Next Steps
- Tracking Events - Track usage events
- Error Handling - Handle errors