Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Jul 04 19:02

    RIAEvangelist on master

    ignoring coverage for language … (compare)

  • Jul 04 02:07
    RIAEvangelist commented #2
  • Jul 03 15:05
    abhyuday-tripathi commented #2
  • Jul 03 04:26
    rishabhkeshan commented #2
  • Jul 02 20:56
    RIAEvangelist commented #2
  • Jul 02 17:59
    gems2000 commented #2
  • Jul 02 17:56
    bucharitesh commented #2
  • Jul 02 15:37
    RIAEvangelist commented #120
  • Jul 02 15:34
    RIAEvangelist commented #118
  • Jul 02 15:34
    RIAEvangelist commented #118
  • Jul 02 15:33
    RIAEvangelist commented #120
  • Jul 02 14:50
    RIAEvangelist commented #2
  • Jun 23 23:21
    RIAEvangelist commented #2
  • Jun 23 11:56
    rishabhkeshan commented #2
  • Jun 18 22:09
    RIAEvangelist commented #2
  • Jun 18 22:08
    RIAEvangelist commented #2
  • Jun 18 21:46
    bucharitesh commented #2
  • May 30 14:50
    mattcroat edited #120
  • May 30 14:46
    mattcroat opened #120
  • May 26 14:17
    madelinecameron commented #114
Madeline Cameron

Along with the other (unrelated) projects, I have a cool project you all might be interested in.

It sort of grew out of a hackathon I was doing with a friend. I'll clean it up and finish it maybe this weekend so I can show it off. Been getting discouraged because Dominos endpoints are spotty and annoying to work with (not like I need to tell you that)

Also, if anyone is dying for a sideproject: Build a Gitter app for Android. ;D The current one (or at least the one I've seen) is horribly insecure (Doesn't use OAuth) and the UI is literally a webview.
Brandon Nozaki Miller
Cool, can't wait to hear about it! I thought you went hiking and fell into a pit or something ;)
The only time I found the endpoints to be spotty is when I built a phone number generation algorithm to get tracking info for all pizzas in transit in Los Angeles.
They have rate limiting per min which blocks you for hours. So long as you don't exceed the per min limit you are good forever. Or round robin your requests.
Actually the block might just be like 10 min or something, I forget really. Once I saw all the moving pizzas I decided to build this api.
And stopped pinging them like that.
Julian Hartline
How do coupons work? Specifically, if I select coupon X.. how does the Dominos UI know what I need to add to my order to fulfill that coupon? I haven't seen anything in the menu that seems to do this..
Brandon Nozaki Miller
I think the cupon is an item. The way ibwould checkbis throigh dev tools on their site and look at request in network tab.
Julian Hartline
Yeah, I was just looking at it.. I didn't see what I was expecting, I'll do some more research. They have this "coupon wizard" that pops up.. but I haven't figured out how it gets its data.
Brandon Nozaki Miller
Maybe the request after the wuzard will shed some light on the situation.
Brandon Nozaki Miller
sorry haven't been around this weekend. Working on extending node-ipc with windows socket support ( poor guys have been waiting a long time ) and TLS/SSL socket support which cert generation scared me off of for a while.
now I just need to document it and I'll be able to get to work on tracking
Brandon Nozaki Miller
Woah! did you guys know Brody got featured with our API on Hack a day?
Julian Hartline
Madeline Cameron
That is super cool! :3 Glad to see it being put to good use! Was thinking about making one of those Netflix and Chill buttons with this library anyway.
Hi, I am new to this so I am currently struggling to understand how it works.. What I currently know is how to get yahoo weather data from by sending a string to query.yahooapis.com and then parsing the returned string. Does this dominos pizza api's does the same by sending a string to example http://www.dominospizza.ph/
Does this work for a Dominos pizza store outside USA? Example Dominos Pizza Delivery in the Philippines.
Madeline Cameron

I am not sure whether it works in non-US stores but it is worth a try, you will likely have to change the endpoint URLs so it would require digging around the site with the developer console in Chrome (or any other browser) to find the endpoints. If you look at at the endpoints we used for the US version, you will likely be able to match up the correct endpoints given they use the same site which doesn't look like it from first glance.

Can you order pizza online through that site?

I do not think you can order at dominospizza.ph online, because there are no way to log in at the website
Brandon Nozaki Miller
Dominospizza.ph seems down for me. Throws anberror aboit the sidenav.php
http://www.dominospizza.ph/ I message them at facebook and they say that "online ordering is currently not activated.
hi there everyone! neat little repo you got going here. I'm trying to set up an Amazon Dash button to order pizza like I've seen and I'm running into a bit of a problem. No matter what I do I always seem to get a few StatusItems when I order: [ { Code: 'AutoAddedOrderId' }, { Code: 'PriceInformationRemoved' }, { Code: 'RuleExecutionError', Message: 'BusinessRule ServiceMethodAllowedForBuildingAtStore failed. Cause: java.lang.String cannot be cast to java.util.Map' } ] } and no pricing info (probably due to the PriceInformationRemoved error). here's my current code: https://gist.github.com/rsheldiii/439edf2e489a158f0871 and I can PM someone the store ID's ive tried if that matters
let me know if I can provide any more information to help!
Brandon Nozaki Miller
I seem to remember having this issue myself.
I believe the issue comes from the P12IPAZA item pre defined items have a different setup, try getting that items object from the menu and taking a look at the actual item object. It probably inherits from another item type and just has a special topping set.
hope this helps @rsheldiii
Steven Oud
Hi, I noticed all the urls in https://github.com/RIAEvangelist/node-dominos-pizza-api/blob/master/src/urls.json are unreachable for me (connection timeout), resulting in the whole app not working (10 failed tests).
Xavier Thomas
Hello, quick question.. what are the values that can be passed to the option property of "ITEM" in the api?
Brandon Nozaki Miller
@sceptre12 you'll have to get those from the menu. If you follow the examples it should auto populate for you when using the add method.
Timur Ercan
Hi guys, i would like to use the api to order in germany. Any ideas if this is possible? The adress object seems to be designed for us adresses only..
Eric Hilary Smith
Hello Im here to order pizza for home delivery
Madhav Ghei
I'm trying to order a Pizza using the API, but I keep getting a "CreditCardPaymentNotAllowed" exception. Does anyone know what this means? https://gist.github.com/madhavghei/0ab1c481119cc74001e6663fc10f6487
Nathan MacInnes

Hey, has anyone used it recently? I am having trouble placing an order. , has anyone else experienced this problem:

   [ { Code: 'AutoAddedOrderId' },
     { Code: 'PriceInformationRemoved' },
     { Code: 'RuleExecutionError',
       Message: 'BusinessRule ServiceMethodAllowedForBuildingAtStore failed. Cause: nullOn StoreOrderID: ' } ],

This is present after attempting to validate the order.

Brandon Nozaki Miller
can you put this issue on the repo?
I tried calling order.price() and received 200 http response. But when I dump the result object I see StatusItems has Failure. I put formatted junk in the credit card number so I don't accidentally send pizzas to my workplace. I wouldn't think that would matter if I'm only pricing an order though.
{ Status: -1,
{ Address:
{ Type: 'House',
Street: [SANITIZED],
Region: [SANITIZED],
PostalCode: [SANITIZED] },
Coupons: [],
CustomerID: '',
Extension: '',
FirstName: 'Melinda',
LastName: [SANITIZED],
LanguageCode: 'en',
OrderChannel: 'OLO',
OrderID: '',
OrderMethod: 'Web',
OrderTaker: null,
Payments: [ [Object] ],
Phone: '',
Products: [ [Object] ],
Currency: 'USD',
ServiceMethod: 'Delivery',
SourceOrganizationURI: 'order.dominos.com',
StoreID: 7111,
Tags: {},
Version: '1.0',
NoCombine: true,
Partners: {},
NewUser: true,
metaData: {},
Amounts: {},
BusinessDate: '',
EstimatedWaitMinutes: '',
PriceOrderTime: '',
IP: '',
Status: -1,
StatusItems: [ [Object] ],
Promotions: { Valid: [], Redeemable: [] } },
Offer: { ProductOffer: '', CouponList: [] },
StatusItems: [ { Code: 'Failure' } ] }
Brandon Nozaki Miller
Just to make sure, you are using the node-dominos, not the old pizza-pi which is not designed for purchasing right?
I was having trouble calling npm install dominos so I was trying to hack around the pizzapi code to include payment. I will look into my dominos installation errors. Is there a Python dependency? Here was my output from npm

C:\Users\melim\Documents\pizzaProject>npm install dominos

node-expat@2.3.15 install C:\Users\melim\Documents\pizzaProject\node_modules\node-expat
node-gyp rebuild

C:\Users\melim\Documents\pizzaProject\node_modules\node-expat>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:454:19)
gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:480:16)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:114:15)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\melim\Documents\pizzaProject\node_modules\node-expat
gyp ERR! node -v v7.10.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok
`-- (empty)

npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\melim\Documents\pizzaProject\package.json'
npm WARN pizzaProject No description
npm WARN pizzaProject No repository field.
npm WARN pizzaProject No README data
npm WARN pizzaProject No license field.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "dominos"
npm ERR! node v7.10.0
npm ERR! npm v4.2.0
npm ERR! errno 1

npm ERR! node-expat@2.3.15 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-expat@2.3.15 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-expat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-expat
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls node-expat
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\melim\AppData\Roaming\npm-cache_logs\2017-05-09T18_18_51_469Z-debug.log

I can keep googling these npm installation issues but if you have suggestions on how to get unblocked, I'd really appreciate it!
I tried setting my python environment variable but I can keep looking into whether it's misconfigured..
Madeline Cameron

Eeee. Yikes. This sort of looks like a node compile issue. https://www.robertkehoe.com/2015/03/fix-node-gyp-rebuild-error-on-windows/

(My prefered solution was to stop writing code on Windows but that is a bit extreme ;))

I don't know if the first link will work but I do remember this being a HUUUUGE pain to get working correctly.
(FYI: This is actually a node issue on Windows since Windows is a bit temperamental when it comes to compiling things. If the first link doesn't work for you, googling around about node-gyp rebuild on Windows might yield some results. This entire process is quite hazy for me unfortunately since I abandoned Windows a while ago for actually this exact issue)
Thanks Madeline and Brandon for being so responsive! I did google around and see the issues around node-gyp rebuild broken on Windows, although I was (probably) in denial. Thanks for the suggested workaround, I'll continue looking into it!
Hello Madelin
Hey Guys!
I'm wondering if it is possible to use a gift card on the api.
Hi, is it possible to use the store locator in the UK?