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

Add order placement #4

Open
DanielleHuisman opened this issue Nov 23, 2019 · 4 comments
Open

Add order placement #4

DanielleHuisman opened this issue Nov 23, 2019 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@DanielleHuisman
Copy link
Member

No description provided.

@DanielleHuisman DanielleHuisman added the enhancement New feature or request label Nov 23, 2019
@DanielleHuisman DanielleHuisman self-assigned this Dec 7, 2019
@RWOverdijk
Copy link

This library might be exactly what I've been looking for. Are you still working on it? Any word from takeaway if they're happy with this? 😄

@DanielleHuisman
Copy link
Member Author

@RWOverdijk I occasionally work on this library, but it's not a high priority since I'm currently not using it in any projects.

I would like to finish implementing the order functionality, but it is somewhat difficult without an example request. I tried using an packet capture app for Android (which works with a local VPN), but this was unsuccessful. It might be possible on a rooted device, but my phone currently isn't. Last time I checked it there weren't any good ways to gain root for my device. So the only way to obtain information about the order request is from reading the deobfuscated Android app.

Any help on the project is obviously welcome!

@RWOverdijk
Copy link

Aah I misunderstood, this API is from the consumer side, not the restaurants. Still interesting though. I might take a look later and see what I can do 😄

@Hanouta
Copy link

Hanouta commented Dec 7, 2020

I ordered from TakeAway (actually Lieferando in my country) today, and I recorded the request through a mitm proxy. Was just a simple order, without adding any notes, ordering special ingredients or things like that, so there are a couple empty fields.

var0: md5 hash
var1: placeorder
var2: empty
var3: Full Name
var4: Empty
var5: street address
var6: empty
var7: postal code
var8: city
var9: phone number
var10: e-mail address
var11: empty
var12: empty
var13: empty
var14: unsure, value was 0
var15: restaurant ID
var16: product IDs, seperated by a semicolon (with a trailing one at the end, eg when buying same item twice: "ID12345;ID12345;")
var17: unsure, value was 52
var18: language
var19: unsure, value was 5
var20: empty
var21: unsure, value was 0
var22: empty
var23: empty
var24: postal code
var25: app ID (in my case: at.lieferservice.android)
var26: additional infos, in my case: {"companyname" : "","entrance" : "","stock" : "","door" : ""}
var27: empty
var28: empty
var29: empty
var30: unsure, value was 0
var31: unsure, value was 0
var32: empty
var33: latitude (seems to be the location that has been searched for (or your location when using GPS I guess))
var34: longitude
var35: again product IDs, this time formatted as json, e.g. [{"product":"ID12345"},{"product":"ID12345"}]
var36: unsure, value was 1
var37: seems to be a unique identifier, probably got generated when launching the app for the first time or something (didn't get transmitted in any other request), format was xxxx-xxxx_xxxxxxxxxxxxxxxxx, where x can be a character (either upper or lower case) or a number
var38: empty
var39: empty
var40: empty
var41: empty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants