Skip to content

datagutt/kanpla

Repository files navigation

Kanpla API client

This is an API client for the Kanpla cantina app. Completely unofficial, use at your own risk

Usage

import Kanpla from '@datagutt/kanpla';
import dotenv from 'dotenv';
dotenv.config();
const kanpla = new Kanpla({
  FIREBASE_API_KEY: process.env.FIREBASE_API_KEY as string,
  FIREBASE_USERNAME: process.env.FIREBASE_USERNAME as string,
  FIREBASE_PASSWORD: process.env.FIREBASE_PASSWORD as string,
  SUPPLIER: process.env.SUPPLIER as string,
  MODULE_ID: process.env.MODULE_ID as string,
  LANGUAGE: 'no',
});

async function main() {
  // const allMenus = await kanpla.getAllMenus();
  // console.log(`All menus:`, allMenus)

  const menu = await kanpla.getMenusForToday();
  console.log(`Today's menu:`, menu);
}

main();

About

Kanpla cantina app api

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published