dominos.sh
After multiple failed attempts to place an order of pizza and getting tired of taking follow-ups from folks at Axis Bank and Bill Desk (the gateway that takes care of Dominos's online pizza orders), I was frustrated a lot. Then, I came across Domino's Slot machine coupon generator. BigOtters Slot Machine Toy, 2PCS Mini Casino Lucky Lottery Game Machine Bars and Sevens Slot Machine Bank with Spinning Reels Creative Gift 4.0 out of 5 stars 312 $8.98 $ 8. 98 $12.99 $12.99.
#!/bin/bash |
#Play a single round on http://pizzaonline.dominos.co.in/slot-machine/ to get your session_id |
until php test_result.php;do |
curl -s -H 'X-Requested-With:XMLHttpRequest' -X POST -d 'session_id=$1' http://pizzaonline.dominos.co.in/slot-machine/process-slot.php -o result.json |
done; |
Domino's India Menu
test_result.php
Dominos India Slot Machines
<?php |
$json=json_decode(file_get_contents('result.json')); |
if(isset($json->coupon_description)){ |
$description_end_position=strpos($json->coupon_description,'!'); |
$description = substr($json->coupon_description,0,$description_end_position); |
echo$json->unique_coupon.' - '.$description.'n'; |
$i=$json->slot_result_position; |
if($i[0]$i[1]&&$i[0]$i[2]&&$i[3]) |
exit(0); |
} |
exit(1); |
commented Oct 4, 2012
line 8 missing a $i should be if($i[0]$i[1]&&$i[0]$i[2]&&$i$i[3]) |
Domino Machine For Sale
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment