An API wrapper for the anti-waste app Karma
yarn add node-karma
const Karma = require("node-karma");
const karma = new Karma({
email: "",
password: "",
});
await karma.login();
await karma.getProfile();
await karma.getLocations({ latitude, longitude }, radius = 5000);
await karma.getSales({ latitude, longitude }, radius = 5000);
await karma.getItems({ latitude, longitude }, radius = 5000);
await karma.getSaleItemsProperties({ latitude, longitude }, radius = 5000);
await karma.getItemsByLocation(locationId);
await karma.getSalesByLocation(locationId);
await karma.getSaleItemsPropertiesByLocation(locationId);