kroky-api
v2.0.1
Published
API for food ordering website kroky.si
Downloads
3
Readme
Kroky API
Import the module
const kroky = require('kroky-api')
Login
await kroky.login(username, password)
Get meals
week (Number):
-1
- Previous week0
- Current week1
- Next week- ...
await kroky.getMeals(week)
Select meal
- date (Date):
2020-03-18
- id (Number):
23679
- category id - xl (Boolean):
true
- large meal
await kroky.selectMeal(date, id, xl)
Sample json response
[
[
{
"id": 23679,
"name": "This is a custom meal name",
"date": "2020-03-18",
"selected": true
}
]
]