@oneblink/apps-react
    Preparing search index...

    Function handleSchedulingQuerystring

    • Pass in query string parameters after a redirect back to your app after a booking is processed. Will return a SchedulingBooking and the submission result from the original submission before redirecting to scheduling.bookingUrl. If the booking has been rescheduled, the submission result will not be returned.

      import queryString from 'query-string'

      const query = queryString.parse(window.location.search)

      const { booking, formSubmissionResult } =
      await schedulingService.handleSchedulingQuerystring(query)

      Parameters

      • options: Record<string, unknown>

      Returns Promise<
          {
              booking: schedulingService.SchedulingBooking;
              formSubmissionResult?: FormSubmissionResult;
          },
      >