This project is an open source node module for the Checkfront API
npm install -g checkfront
npm install --save checkfrontIn order to call the Checkfront API, you will need to be setup with:
- endpoint
- key
- secret
const checkfront = require('checkfront')({
endpoint,
key,
secret,
});Retrieve a listing of bookings in the system.
const bookings = await checkfront.bookings.list({
status_id: '',
});Retrieve extended information on a specific booking.
const booking = await checkfront.bookings.retrieve(bookingId);Retrieve a list of the enabled items in the system.
const items = await checkfront.items.list();Retrieve details for a single item.
const item = await checkfront.items.retrieve(itemId);Fork the respository and install all the dependencies:
yarn installRun the setup script in the project root directory:
yarn setupMake sure to run the unit tests and linting before committing. Obviously, add to the tests as you make changes:
yarn testFor watch:
yarn testingYou can also run the scenario tests against the live API:
yarn test-scenario