ak-scheduler
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Logo

Appointment King Scheduler
Manage Appointment King schedules

[ Installation 💾 | Usage 🤓 | NPM 📦 | Github 🕸 ]

Installation

yarn add ak-scheduler

Usage

import { Scheduler } from 'ak-scheduler';

// user lookup data
const data = {
    firstName: 'John',
    lastName: 'Doe',
    birthdate: new Date('2000-01-01'),
    email: 'john@example.com',
    phone: '(800) 000-0000',
};

// Create the scheduler
const scheduler = new Scheduler('0000'); //  <-- location id

// Create a session
scheduler.createSession().then(() => {
    scheduler.getBookedAppointments(data).then((appts) => {
        console.log(appts);
    });
});

Will output

[
Appointment {
  datetime: '2020-11-25T23:45:00.000Z',
  typeID: '09821',
  trainerID: '562354',
  isBooked: true,
  id: '5687446' }
]

Dependencies

Readme

Keywords

none

Package Sidebar

Install

npm i ak-scheduler

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

45 kB

Total Files

53

Last publish

Collaborators

  • k2on