Alkaar / resy-booking-bot

🔫 Helps to snipe hard to get reservations at restaurants that use resy
407 stars 214 forks source link

More instructions on acquiring VenueId, AuthToken etc.. #9

Closed zeyademam closed 2 years ago

zeyademam commented 4 years ago

This looks awesome. I was wondering if you can explain how I can get the variables required to use the bot?

jschaeuf01 commented 4 years ago

You'll need to be logged in and looking at the reservation page you are trying get. In Chrome, you can open the Developer Tools, check under elements, console, and sources to find the API key's and other variables mentioned in the readme.

nem1230 commented 3 years ago

This bot is really cool. However, I keep getting the following response from the server. I was able to get the auth token from the console, but can't find an api key anywhere. I keep getting the following response when just providing the auth token for authentication in the BookingDetails file:

URL Response: {"status": 419, "code": null, "message": "Unauthorized", "data": {}} play.api.libs.json.JsResult$Exception: {"obj":[{"msg":["Could not find a reservation for the given time(s)"],"args":[]}]}

I think it has to do with me not supplying an api key because the venue does have reservations available and my specified times.

nem1230 commented 3 years ago

This bot is really cool. However, I keep getting the following response from the server. I was able to get the auth token from the console, but can't find an api key anywhere. I keep getting the following response when just providing the auth token for authentication in the BookingDetails file:

URL Response: {"status": 419, "code": null, "message": "Unauthorized", "data": {}} play.api.libs.json.JsResult$Exception: {"obj":[{"msg":["Could not find a reservation for the given time(s)"],"args":[]}]}

I think it has to do with me not supplying an api key because the venue does have reservations available and my specified times.

Looks Like I solved this one by finding the right api key and now getting this as response even though there are reservations available at the times I am looking for

2021-05-17T12:29:46.526-07:00 URL Response: {"filter": [], "query": {"day": "2021-05-18", "party_size": 2}, "results": []}

play.api.libs.json.JsResult$Exception: {"obj":[{"msg":["Could not find a reservation for the given time(s)"],"args":[]}]}

Alkaar commented 2 years ago

Sorry for not keeping up to date on these issues as I've not used nor maintained the bot due to the pandemic. As of now, it seems that Resy updated the API endpoint so the contract is completely different. I have tried to go through the bot to fix things but I haven't gotten around to fixing it completely. Just wanted to make you all aware.

Alkaar commented 2 years ago

Hey, so I updated the bot to work with the new Resy API along with a few other minor fixes. Give it a shot and LMK your thoughts. I can certainly update the documentation but felt that was secondary to actually getting it running again.

alekfestekjian commented 2 years ago

Managed to get everything except venueID - can you give an example of which network call you are grabbing and which value in the JSON? Is it this?

 "venue_group": {
        "id": 194788,
        "name": "Resturant",
        "venues": []
    },
Alkaar commented 2 years ago

I was making an unrelated change here 👉 https://github.com/Alkaar/resy-booking-bot/pull/36 but saw this and updated the documentation to help answer your question @alekfestekjian

The revised comment can be found here 👉 https://github.com/Alkaar/resy-booking-bot/pull/36/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R21

I also have slowly improved the documentation in general relating to this issue so I'm intending to close this out unless further clarity is needed.

Alkaar commented 2 years ago

I'm assuming the instructions I updated are sufficient and I haven't heard much here so I'm closing this. Feel free to reopen if you have any more questions.