src/Wuunder/Api/Endpoints/Booking.php
public function fire()
    {
        $bookingRequest = new PostRequest($this->apiEnvironment->getStageBaseUrl() . "/bookings",
            $this->apiKey->getApiKey(), json_encode($this->config));
        try {
          $bookingRequest->send();
        } catch(Exception $e) {
            $this->logger->log($e);
        }

        $body = null;
        $header = null;
        $error = null;

        if (isset($bookingRequest->getResponseHeaders()["location"])) {
            $header = $bookingRequest->getResponseHeaders();
        } else {
            $error = $bookingRequest->getResponse();
        }
        $this->bookingResponse = new BookingApiResponse($header, $body, $error);

        return is_null($error);
    }
public function fire()
    {
        $bookingRequest = new PostRequest($this->apiEnvironment->getStageBaseUrl() . "/bookings",
            $this->apiKey->getApiKey(), json_encode($this->config));
        try {
          $bookingRequest->send();
        } catch(Exception $e) {
            $this->logger->log($e);
        }

        $body = null;
        $header = null;
        $error = null;

        if (isset($bookingRequest->getResponseHeaders()["location"])) {
            $header = $bookingRequest->getResponseHeaders();
        } else {
            $error = $bookingRequest->getResponse();
        }
        $this->bookingResponse = new BookingApiResponse($header, $body, $error);

        return is_null($error);
    }
Fires the request and handles the result.

@return bool