src/Wuunder/Api/Endpoints/Parcelshops.php
public function fire()
    {
        $parcelshopsRequest = new GetRequest($this->apiEnvironment->getStageBaseUrl() . "/parcelshops_by_address" . $this->config->toGetParameters(),
            $this->apiKey->getApiKey());
        try {
            $parcelshopsRequest->send();
        } catch(Exception $e) {
            $this->logger->log($e);
        }

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

        if (isset($parcelshopsRequest->getResponseHeaders()["http_code"]) && strpos($parcelshopsRequest->getResponseHeaders()["http_code"], "200 OK") !== false) {
            $body = $parcelshopsRequest->getBody();
            $header = $parcelshopsRequest->getResponseHeaders();
        } else {
            $error = $parcelshopsRequest->getResponse();
        }
        $this->parcelshopsResponse = new ParcelshopsApiResponse($header, $body, $error);

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

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

        if (isset($parcelshopsRequest->getResponseHeaders()["http_code"]) && strpos($parcelshopsRequest->getResponseHeaders()["http_code"], "200 OK") !== false) {
            $body = $parcelshopsRequest->getBody();
            $header = $parcelshopsRequest->getResponseHeaders();
        } else {
            $error = $parcelshopsRequest->getResponse();
        }
        $this->parcelshopsResponse = new ParcelshopsApiResponse($header, $body, $error);

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

@return bool