Une API pour Foodchéri
const Foodcheri = require('node-foodcheri');
const foodcheri = new Foodcheri({
apiKey: ''
});
foodcheri.signUp({phone, last_name, email, first_name, password});
foodcheri.login(email, password);
foodcheri.getProfile();
foodcheri.updateProfile({ phone, first_name, last_name });
foodcheri.getOrders();
foodcheri.getLastOrder();
foodcheri.getLastOrder(orderHash);
foodcheri.getAllTimeslots({ latitude, longitude });
foodcheri.getTimeslots(
{ latitude, longitude },
(mealDate = moment()
.format(DATE_FORMAT)
.toString()),
(time = '12:00')
);
foodcheri.getIdArea(
{ latitude, longitude },
(mealDate = moment()
.format(DATE_FORMAT)
.toString()),
(time = '12:00')
);
foodcheri.getMenu(
(meal = 'LUNCH' | 'DINNER'),
(mealDate = moment()
.format(DATE_FORMAT)
.toString()),
(idArea = '100')
);
foodcheri.getReceipt(orderHash);