const kroky = require('kroky-api')
await kroky.login(username, password)
week (Number):
-1
- Previous week0
- Current week (Mon - Sun)1
- Next week- ...
Yeah, I know, it's stupid. Better version comming soon™
await kroky.getMeals(week)
- date (Date):
2020-03-18
- id (Number):
23679
- category id - xl (Boolean):
true
- large meal
await kroky.selectMeal(date, id, xl)
[
[
{
"id": 23679,
"name": "This is a custom meal name",
"date": "2020-03-18",
"selected": true
}
]
]