JavaScript / TypeScript SDK
Official SDK for Node.js and browser applications.
Installation
npm install @meeva/sdkConfiguration
import { MeevaClient } from '@meeva/sdk';
const meeva = new MeevaClient({
apiKey: process.env.MEEVA_API_KEY
});Bookings
Create a booking:
const booking = await meeva.bookings.create({
eventTypeId: 'evt_123',
startTime: '2024-01-20T10:00:00Z',
attendee: {
email: 'user@example.com',
firstName: 'John',
lastName: 'Doe'
}
});Event Types
List event types:
const eventTypes = await meeva.eventTypes.list();
console.log(eventTypes);Types
The SDK includes full TypeScript definitions:
import type { Booking, EventType } from '@meeva/sdk';
function handleBooking(booking: Booking) {
console.log(booking.status);
}