Skip to content

Commit 199cb6c

Browse files
authored
Merge pull request #39 from parikhv15/master
Changed response string for walmart response.
2 parents a4947c3 + 837155a commit 199cb6c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

finder.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ const retalierConfig = {
4444
},
4545
walmartgroceriespickup: {
4646
label: 'Walmart Groceries - Pickup',
47-
url: `https://grocery.walmart.com/v4/api/accessPoints/${authConfig[WALMART_GROCERIES].store_id}/slots?contractId=${authConfig[WALMART_GROCERIES].cart_id}&fulfillmentType=INSTORE_PICKUP&express=true&mergedSlots=true&restrictedSlots=true`,
48-
signature: '"available":true',
47+
url: `https://grocery.walmart.com/v4/api/accessPoints/${authConfig[WALMART_GROCERIES].store_id}/slots?cartId=${authConfig[WALMART_GROCERIES].cart_id}&fulfillmentType=INSTORE_PICKUP&express=true&mergedSlots=true&restrictedSlots=true`,
48+
signature: '\\"available\\":true',
4949
responseDataType: 'json',
5050
auth: authConfig[WALMART_GROCERIES],
5151
cookie: authConfig[WALMART_GROCERIES].cookie,
@@ -54,7 +54,7 @@ const retalierConfig = {
5454
walmartgroceriesdelivery: {
5555
label: 'Walmart Groceries - Delivery',
5656
url: `https://grocery.walmart.com/v4/api/accessPoints/${authConfig[WALMART_GROCERIES].store_id}/slots?contractId=${authConfig[WALMART_GROCERIES].cart_id}&fulfillmentType=DELIVERY&express=true&mergedSlots=true&restrictedSlots=true`,
57-
signature: '"available":true',
57+
signature: '\\"available\\":true',
5858
responseDataType: 'json',
5959
auth: authConfig.walmartgroceries,
6060
cookie: authConfig[WALMART_GROCERIES].cookie,
@@ -65,7 +65,7 @@ const retalierConfig = {
6565
const sleep = require('sleep')
6666
const https = require('https')
6767
const player = require('play-sound')()
68-
let checkingInEveryXminutes = 1
68+
let checkingInEveryXminutes = 1
6969
const minFrequency = 1 // Minimum value is 1 minute
7070

7171
// Don't bombard by checking in every less than minFrequency minute(s)
@@ -90,7 +90,7 @@ const retailer = retalierConfig[retailerNamePassed]
9090

9191
function beep () {
9292
player.play('beep.mp3', function (err) {
93-
93+
9494
})
9595
}
9696

@@ -152,7 +152,7 @@ function pingRetailer (retailer, freqInterval, confirmConfig) {
152152
} else {
153153
const responseString = data
154154
}
155-
155+
156156
if (responseString.indexOf(retailer.signature) > -1) {
157157
console.log(`${new Date().toString()} - ******** WOHOOOO FOUND A DELIVERY WINDOW, GO TO YOUR ALREADY OPENED CART WEB PAGE AND REFRESH THE PAGE TO SEE AVAILABLE WINDOWS *********`)
158158
while (true) {

0 commit comments

Comments
 (0)