Introduction
The Cuey TypeScript client provides a type-safe, object-based interface for interacting with the Cuey REST API. It handles authentication, request formatting, error handling, and provides full TypeScript type definitions.Features
- Type-safe: Full TypeScript support with comprehensive type definitions
- Easy to use: Simple API with intuitive method names
- Environment-based: Configure using environment variables
- Error handling: Typed error classes for different error scenarios
- Resource-based: Organized into
cronsandeventsresources
Basic Usage
Environment Variables
Before using the client, set the required environment variable:Using the Client
Import and use the defaultcuey instance:
For advanced configuration options, including using multiple API keys or
custom instances, see the Advanced
Configuration section.
Client Structure
Thecuey instance provides resource objects for managing events and cron jobs: