Node Instacart API wrapper
constructor(email, password)
-
login()
- login to your Instacart account to retrieve a valid session token
getDeliveryTimes(retailerName)
- retrieves delivery schedule for the provided retailer name
getRetailers()
- returns a list of retailers associated with your last used address
The cron_job
example schedules a re-occurring task every minute to check for available delivery times
cd ./instacwrapper
npm install
- create an .env file in the root directory:
vi .env
- set the
EMAIL
andPASSWORD
environment variables using your Instacart credentials npm run example:cron
- observe the output
Canadian Retailer Name Mappings
- Walmart =
walmart_canada
- Loblaws =
loblaws
- Real Canadian Superstore =
real-canadian-superstore
- T&T Supermarket= TODO
- Staples= TODO
- Shoppers Drug Mart= TODO
- M&M Food Market= TODO