RIAEvangelist / node-dominos-pizza-api

This is a node.js wrapper for the dominos pizza apis
MIT License
534 stars 129 forks source link

Dominos Canada support #57

Closed rolandsoft closed 7 years ago

rolandsoft commented 8 years ago

Hi, I was wondering if there can be a Dominos Canada fork... would love to be able to automate my weekly orders... also if it supports the coupon system (Mondays is 50% off using MON50P coupon)

madelinecameron commented 8 years ago

It does support coupons last time I checked, at least in the US.

As long as Dominos Canada uses the same endpoints and has them exposed, it should work exactly as it does in the US.

I don't think we have a tutorial explaining how to add coupons, but I believe there was a PR that added methods for adding coupons. It is just a key inside of the Order object.

rolandsoft commented 8 years ago

I wasn't able to see the Dominos.com website from Canada, but using hola I was able to browse the US site, and it looks like the same, I'll try it this weekend and see if I can get it working... will post if successful

James-Firth commented 8 years ago

@rolandsoft Any results for Canada?

johnhforrest commented 8 years ago

Would love to hear a response on this too!

RIAEvangelist commented 8 years ago

Does anyone know the canadian api address?

johnhforrest commented 8 years ago

I took a look at some of the urls in urls.json and I think it's easy to just substitute the TLD (notice .ca instead of .com).

e.g.,:

https://order.dominos.ca/power/store-locator https://order.dominos.ca/power/store/ https://order.dominos.ca/power/price-order

pdube commented 7 years ago

Opened up a PR for this. It works for Canada as well now

RIAEvangelist commented 7 years ago

Thanks @pdube merged. Gonna do one more run through and release tonight.