Search
Code29
import { set } from "https://esm.town/v/vtdocs/set";import { resyBookSlot } from "https://esm.town/v/vtdocs/resyBookSlot";import { resyGetSlotBookingToken } from "https://esm.town/v/vtdocs/resyGetSlotBookingToken";import { resyGetMatchingSlot } from "https://esm.town/v/vtdocs/resyGetMatchingSlot";import { resyVenueIdFromSlugAndCity } from "https://esm.town/v/vtdocs/resyVenueIdFromSlugAndCity";import { fetch } from "https://esm.town/v/std/fetch";import { resyPublicAPIKey } from "https://esm.town/v/vtdocs/resyPublicAPIKey";export const resyAuth = async (email: string, password: string): Promise<{ token: string;}) => { const { z } = await import("npm:zod"); const RESY_API_URL = "https://api.resy.com"; const RESY_DEFAULT_HEADERS = { accept: "application/json, text/plain, */*", "accept-encoding": "gzip, deflate, br",# Resy botThis bot books restaurant reservations via Resy. Use it to snipe reservations at your favorite restaurant!## How to use itimport { set } from "https://esm.town/v/vtdocs/set";import { resyBookSlot } from "https://esm.town/v/vtdocs/resyBookSlot";import { resyGetSlotBookingToken } from "https://esm.town/v/vtdocs/resyGetSlotBookingToken";import { resyGetMatchingSlot } from "https://esm.town/v/vtdocs/resyGetMatchingSlot";import { resyVenueIdFromSlugAndCity } from "https://esm.town/v/vtdocs/resyVenueIdFromSlugAndCity";}) => { const { z } = await import("npm:zod"); const RESY_API_URL = "https://api.resy.com"; const RESY_DEFAULT_HEADERS = { accept: "application/json, text/plain, */*", "accept-encoding": "gzip, deflate, br",}) => { const { z } = await import("npm:zod"); const RESY_API_URL = "https://api.resy.com"; const RESY_DEFAULT_HEADERS = { accept: "application/json, text/plain, */*", "accept-encoding": "gzip, deflate, br",export const resyPublicAPIKey = "VbWk7s3L4KiK5fzlO7JD3Q5EYolJI7n5";import { fetch } from "https://esm.town/v/std/fetch";import { resyPublicAPIKey } from "https://esm.town/v/vtdocs/resyPublicAPIKey";export const resyVenueIdFromSlugAndCity = async ( resyToken: string,