Socket
Socket
Sign inDemoInstall

cir-food

Package Overview
Dependencies
96
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cir-food

Cir-Food reverse API implementation in NodeJS.


Version published
Maintainers
1
Install size
13.8 MB
Created

Readme

Source

CIR-FOOD

Cir-Food reverse API implementation in NodeJS.

Configuration

All API are authenticated, so you must first of all configure your client.

const CirFood = require('cir-food');

const username = process.env.CIRFOOD_USERNAME;
const password = process.env.CIRFOOD_PASSWORD;
const client = new CirFood(username, password);

Start a booking

client.startBooking(new Date('2018-05-11');
Get courses

Once you start a booking, you can get all courses for that day.

const courses = client.booking.courses;
Add a course to current booking

Once you got courses, use that IDs to add a course to current booking

const course_id = courses.data[0].id;
client.addCourseToCurrentBooking(course_id)
Submit booking
client.submitCurrentBooking()

FAQs

Last updated on 15 May 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc