Search
Code28
import { blob } from "https://esm.town/v/std/blob?v=12";import { resyAuth } from "https://esm.town/v/vtdocs/resyAuth";import { resyBookSlot } from "https://esm.town/v/vtdocs/resyBookSlot";import { resyGetMatchingSlot } from "https://esm.town/v/vtdocs/resyGetMatchingSlot";import { resyGetSlotBookingToken } from "https://esm.town/v/vtdocs/resyGetSlotBookingToken";
# Resy botThis bot books restaurant reservations via Resy. Use it to snipe reservations at your favorite restaurant!## How to use it
import { resyAuth } from "https://esm.town/v/abusel/resyAuth";import { resyBookSlot } from "https://esm.town/v/vtdocs/resyBookSlot";import { resyGetMatchingSlot } from "https://esm.town/v/vtdocs/resyGetMatchingSlot";import { resyGetSlotBookingToken } from "https://esm.town/v/vtdocs/resyGetSlotBookingToken";import { resyVenueIdFromSlugAndCity } from "https://esm.town/v/vtdocs/resyVenueIdFromSlugAndCity";
import { resyAuth } from "https://esm.town/v/abusel/resyAuth";import { resyBookSlot } from "https://esm.town/v/vtdocs/resyBookSlot";import { resyGetMatchingSlot } from "https://esm.town/v/vtdocs/resyGetMatchingSlot";import { resyGetSlotBookingToken } from "https://esm.town/v/vtdocs/resyGetSlotBookingToken";import { resyVenueIdFromSlugAndCity } from "https://esm.town/v/vtdocs/resyVenueIdFromSlugAndCity";
# Resy botThis bot books restaurant reservations via Resy. Use it to snipe reservations at your favorite restaurant!## How to use it
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";
}) => { 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",
import { blob } from "https://esm.town/v/std/blob?v=12";import { resyAuth } from "https://esm.town/v/vtdocs/resyAuth";import { resyBookSlot } from "https://esm.town/v/vtdocs/resyBookSlot";import { resyGetMatchingSlot } from "https://esm.town/v/vtdocs/resyGetMatchingSlot";import { resyGetSlotBookingToken } from "https://esm.town/v/vtdocs/resyGetSlotBookingToken";
import { fetch } from "https://esm.town/v/std/fetch";import { resyPublicAPIKey } from "https://esm.town/v/vtdocs/resyPublicAPIKey";import { sleep } from "https://esm.town/v/vtdocs/sleep";export const resyBookSlot = async (
Vals
No vals found
Users
No users found
and custom status codes. ExampleRun in Val Town ↗ // Visit: https://api.val.town/v1/express/vtdocs.customStatusCode. export const customStatusCode = ( req: express.Request, res: express.Response. ) => { // https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418. res.status(418).send("I'm a teapot"); };
} from "https://deno.land/x/puppeteer@16.2.0/src/deno/Puppeteer.ts"; const puppeteer = new PuppeteerDeno({ productName: "chrome", }); const browser = await puppeteer.connect({ browserWSEndpoint: `wss://chrome.browserless.io?token=${Deno.env.get( "browserless". )}`, }); const page = await browser.newPage(); await page.goto("https://en.wikipedia.org/wiki/OpenAI"); const intro
S3Client } from "https://deno.land/x/s3_lite_client@0.6.1/mod.ts"; const s3client = new S3Client({ endPoint: `s3.${Deno.env.get("awsS3Region")}.amazonaws.com`, region: Deno.env.get("awsS3Region"), bucket: Deno.env.get("awsS3Bucket"), accessKey: Deno.env.get("awsS3Key"), secretKey: Deno.env.get("awsS3Secret"), }); const res = await s3client.getObject("filename.txt"); console.log(await res.text()); getObject returns a
environment variable that only I know: user/secretEndpointRun in Val Town ↗ export const secretEndpoint = (req: Request) => { const secretHeader = req.headers.get("Authorization"); if (secretHeader !== Deno.env.get("supersecrettoken")) { return new