ππ€ Stocks manager for Adial pizza ATM (pizzadoor)
npm install pizzadoor-stocks-manager
const PizzadoorStocksManager = require('pizzadoor-stocks-manager');
const config = {};
const credentials = {
adial: {
username: 'my-username',
password: 'my-super-secret-password',
},
};
let manager = new PizzadoorStocksManager(config, credentials);
manager.fetchAndManage().then(atmsData => console.log(atmsData));
Here are all the credentials that might be required to work properly.
const credentials = {
adial: {
username: 'my-username',
password: 'my-super-secret-password',
},
sendgrid: {
apiKey: 'my-api-key',
},
};
Take a look at the sample.config.js
file at the root of the repo to get all the possible settings available.
Found a bug? Feel free to contact me or open an issue on github. You can also contribute by creating a pull request.
This project has recently been migrated to Typescript due to an external need. The typeness support is partial and mostly ensured to have type at the external interface. The internal code is not properly typed. Since a lot of the code is scraping, its format is not stable and it is not easy to type. If you are interested in improving the typing, please feel free to submit a PR.