0.0.3 • Published 7 years ago

gourmet-api v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

MIT license

API for alaclick.gourmet.at

Install

npm install gourmet-api --save

Usage

import { GourmetAPI } from "gourmet-api";

const api = new GourmetAPI();

(async () => {
    await api.login('user', 'password');
    const list = await api.getMealList();
    const meal = await api.getMealDetail(list[0].id);
    console.log(meal);
})();

Output:

{ name: 'Schweinskarree in Pfeffersauce mit Rosmarinkartoffeln und Gartengemüse',
  mealId: 2302202,
  imageUrl: 'https://gourmetalaclick.blob.core.windows.net/img/mealitems/2302202.png',
  description: 'Zwei zarte Schweinskarrees in Pfeffersauce mit Rosmarinkartoffeln und Gartengemüse mit gelben und grünen Bohnen und Perlkarotten.',
  weight: 420,
  properties: [ 'Fit mit Genuss' ],
  price: 5.98,
  id: 5448,
  available: true,
  kJ: 1698,
  kcal: 405,
  fat: 15.7,
  saturated: 6.3,
  carbohydrate: 29.5,
  sugar: 8.8,
  protein: 33.4,
  salt: 6.1,
  breadunit: 2.5,
  allergens: [ 'A', 'G', 'L' ] }