@bookla-app/react-client-sdk
v0.1.1
Published
React SDK for Bookla Client API
Downloads
109
Maintainers
Readme
Bookla React SDK
React SDK for integrating with Bookla's booking system.
Installation
npm install @bookla/react-sdk
Usage
import { BooklaSDK } from '@bookla-app/react-client-sdk';
const bookla = new BooklaSDK({
apiUrl: 'https://us.bookla.com/api',
apiKey: 'your-api-key',
debug: true,
retry: {
maxAttempts: 3,
delayMs: 1000,
statusCodesToRetry: [408, 429, 500, 502, 503, 504]
}
});
// Get services
const services = await bookla.services.list('company-id');
// Create booking
const booking = await bookla.bookings.request({
companyID: 'company-id',
serviceID: 'service-id',
resourceID: 'resource-id',
startTime: '2024-01-01T10:00:00Z'
});
Documentation
License
MIT