Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

International UK #76

Open
NyleCohen opened this issue Aug 14, 2018 · 12 comments
Open

International UK #76

NyleCohen opened this issue Aug 14, 2018 · 12 comments

Comments

@NyleCohen
Copy link

Hi!

I want to know how to add in UK support for pizzapi. If anyone could help me that would be amazing.

Thank you.
Nyle.

Repository owner deleted a comment Jan 10, 2021
@RIAEvangelist RIAEvangelist changed the title UK support for pizzapi International UK Feb 24, 2021
@RIAEvangelist
Copy link
Owner

v3.x international settings should make this possible now. Still need to work out the endpoints, but everything is baked in to support it.

@RIAEvangelist
Copy link
Owner

v3 now supports international apis.

Please have a look. If you can not find your API endpoints request help again, and we can work on it together. I will need to work with someone in country to make sure the order completes and you get Pizza.

@RIAEvangelist
Copy link
Owner

If anyone would like to contribute the API list as defined in docs/InternationalSupport.md

I would be happy to implement it into the code. I do need help from contributors though because I do not know addresses etc to use for testing without traveling to the country on my own.

Help would be greatly appreciated, and the world of Pizza lovers would thank you.

@brybalicious
Copy link

@RIAEvangelist Down to help for multiple countries in Europe. Starting with Netherlands. Shall we sync up?

@RIAEvangelist
Copy link
Owner

RIAEvangelist commented Feb 15, 2022

@brybalicious Let me know if you have any questions :) I look forward to some PRs on this. Looks like this ticket has been around for 4 years.

@brybalicious
Copy link

brybalicious commented Feb 17, 2022

@RIAEvangelist, I emailed you. I am working on a project that uses this repo and am reasonably motivated. I'm bouncing around internationally and could get e.g. 4 countries live for you within a month or so. I need some help, however. Starting with NL, it's difficult to understand exactly what the endpoints are given that the order flow is different to e.g. the US. I've made an attempt but not managed to order the fabled pepperoni pizza yet. So, if you're up for it, what would work best for me is that we jump on a call to e.g. do one country, then I can attempt the others on my lonesome. Please check your email!

Just replied this particular issue for no particular reason other than that I saw your responses Feb and Mar 2021 saying you'd be open to tag teaming.

@RIAEvangelist
Copy link
Owner

RIAEvangelist commented Feb 22, 2022 via email

@brybalicious
Copy link

Yes. Awesome. Did you get my email? Maybe we could organise a discord call there? @RIAEvangelist

@brybalicious
Copy link

In Germany now but only for a few more days. Messaged you at your given public email [email protected] with subject line "Pizza Around the world" incl. my handle for a potential call.

Thanks

@RIAEvangelist
Copy link
Owner

RIAEvangelist commented Feb 28, 2022 via email

@ReeceKenney
Copy link

A quick look at fiddler whilst browsing to the Dominos UK website shows some of the following urls:

Locating stores:
https://www.dominos.co.uk/api/stores/v1/stores?locationToken=UK-PC:{"postCode":"<POSTCODE-HERE>"}&radius=30&limit=10

Note: The above endpoint specifies a locationToken you see at the end of the url. This seems to work by specifying just a postcode, but when you enter a postcode into their store lookup on their website, it makes a request to the below mentioned url. From there, it seems to take the locationToken from one of the addresses

Look up delivery addresses (where I assume it retrieves the locationToken):
https://www.dominos.co.uk/api/location/v1/search?searchText=<POSTCODE-HERE>

Getting basket contents:
https://www.dominos.co.uk/api/baskets/v1/baskets

Sorry if this this info is redundant. This code in this repo may already be handling the locationToken lookup logic.

I'd like to help find more urls for the UK when I have time, but maybe this can help point us in the right direction? I haven't proceeded as far as placing an order so the above urls are all I was able to uncover at the moment

@RIAEvangelist
Copy link
Owner

@ReeceKenney The international file should have a format that you can find by snooping the traffic the way you have been.

https://www.dominos.co.uk/api/location/v1/search?searchText=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants