Public
Script
  • vtdocs avatar
    sha256
    @vtdocs
    // Copied from https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest
    Script
  • vtdocs avatar
    resyGetMatchingSlot
    @vtdocs
    (Part of: https://www.val.town/v/vtdocs.resyBot) This val attempts to return a single valid slot (per the time range requirements). If there are no valid slots, it throws an error. When there are multiple valid slots, it picks the middle slot (by ordering, not necessarily by time).
    Script
  • vtdocs avatar
    resyAuth
    @vtdocs
    (Part of: https://www.val.town/v/vtdocs.resyBot) Get a user's auth token and payment methods.
    Script
  • vtdocs avatar
    resyBookSlot
    @vtdocs
    (Part of: https://www.val.town/v/vtdocs.resyBot) Given a valid booking token, this val attempts to make a reservation for the booking token's slot. There is some retry logic as the API route (rarely) returns an internal server error.
    Script
  • vtdocs avatar
    resyGetSlotBookingToken
    @vtdocs
    (Part of: https://www.val.town/v/vtdocs.resyBot) Given a valid slot, this val generates the booking token that's required to place a reservation.
    Script
  • vtdocs avatar
    resyVenueIdFromSlugAndCity
    @vtdocs
    (Part of: https://www.val.town/v/vtdocs.resyBot)
    Script
1
Next
July 1, 2024