slotify-widget
v1.0.3
Published
JavaScript SDK for Slotify scheduling API, providing easy-to-use endpoints for scheduling, booking, and managing appointments.
Maintainers
Readme
Slotify Booking Widget
The Slotify Widget is a JavaScript library that integrates the Slotify booking system into your website. This widget allows users to interact with your booking system directly on your site.
Installation
To install the Slotify Widget library, you can use npm or yarn.
# use npm to install
npm install slotify-widget
# use yarn to install
yarn add slotify-widget
Usage
Once the library is installed, you can import and use it to integrate the Slotify widget into your website.
import SlotifyWidget from 'slotify-widget';
SlotifyWidget({
bookingUrl: 'YOUR_BOOKING_URL'
});
If you want to use it as module:
<!doctype html>
<html lang="en">
<head>
<title>Slotify Bot</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script type="module">
import SlotifyWidget from '/dist/index.js';
window.addEventListener('DOMContentLoaded', () => {
SlotifyWidget({
bookingUrl: 'YOUR_BOOKING_URL',
});
});
</script>
</head>
<body>
<h1>Slotify Bot</h1>
<div id="output"></div>
</body>
</html>